Skip to content

Commit 8029add

Browse files
authored
common: note that Inferno.Owner() may be nil
see #131
1 parent a5086d3 commit 8029add

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/inferno.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func (inf Inferno) ConvexHull3D() quickhull.ConvexHull {
138138
}
139139

140140
// Owner returns the player who threw the fire grenade.
141+
// Could be nil if the player disconnected after throwing it.
141142
func (inf Inferno) Owner() *Player {
142143
return inf.demoInfoProvider.FindPlayerByHandle(inf.Entity.FindPropertyI("m_hOwnerEntity").Value().IntVal)
143144
}

0 commit comments

Comments
 (0)