Commit ddb4ff4
committed
fix: possible nil player in game events on rare occasion
Make sure to create/update players in gameState (`playersByEntityID`, `playersByUserID`) on connection status changes.
Sometimes players raw info are not available on controller entity creation so it would result in missing players in `gameState.playersByUserID`.
It may be related to player disconnection as the affected player got disconnected at the beginning of the demo.
fix akiver/cs-demo-manager#9041 parent 894aeb3 commit ddb4ff4
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
| |||
0 commit comments