We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e62b9d1 + d135c88 commit e55c4eaCopy full SHA for e55c4ea
pkg/demoinfocs/datatables.go
@@ -115,8 +115,11 @@ func (p *parser) bindBomb() {
115
if p.isSource2() {
116
planterHandle := bombEntity.PropertyValueMust("m_hOwnerEntity").Handle()
117
ctlHandle := p.gameState.entities[entityIDFromHandle(planterHandle, true)].PropertyValueMust("m_hController").Handle()
118
- ctlID := p.gameState.entities[entityIDFromHandle(ctlHandle, true)].ID()
119
- planter := p.gameState.playersByEntityID[ctlID]
+ ctl := p.gameState.entities[entityIDFromHandle(ctlHandle, true)]
+ if ctl == nil {
120
+ return
121
+ }
122
+ planter := p.gameState.playersByEntityID[ctl.ID()]
123
124
planter.IsPlanting = true
125
p.gameState.currentPlanter = planter
0 commit comments