Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash in SendPacket(), packet.SendPacket() and DisconnectClient()…
… when the client was not yet logged in. Those functions expected chrptr to be null when a character wasn't assigned to a client, but they instead got an uninitialized pointer. This caused a memory access error that crashed POL. Initializing those pointers to null fixes the issue.
- Loading branch information
1 parent
90b92f4
commit 0f230f8
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters