Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: possible nil player in game events on rare occasion #560

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

akiver
Copy link
Collaborator

@akiver akiver commented Aug 8, 2024

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#904

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#904
@akiver akiver merged commit 25f2b4e into master Aug 8, 2024
8 checks passed
@akiver akiver deleted the fix-nil-player branch August 8, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime error: invalid memory address or nil pointer dereference
1 participant