We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 665d2c6 commit 7be9c51Copy full SHA for 7be9c51
pkg/demoinfocs/game_events.go
@@ -843,7 +843,14 @@ func (geh gameEventHandler) otherDeath(data map[string]*msg.CSVCMsg_GameEventKey
843
killer := geh.playerByUserID32(data["attacker"].GetValShort())
844
otherType := data["othertype"].GetValString()
845
otherID := data["otherid"].GetValShort()
846
- otherPosition := geh.gameState().entities[int(otherID)].Position()
+ other := geh.gameState().entities[int(otherID)]
847
+
848
+ var otherPosition r3.Vector
849
850
+ if other != nil {
851
+ otherPosition = other.Position()
852
+ }
853
854
wepType := common.MapEquipment(data["weapon"].GetValString())
855
weapon := getPlayerWeapon(killer, wepType)
856
0 commit comments