Skip to content

Fix: Add null checks for TheMessageStream and ThePlayerList before using them#119

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-null-checks-messagestream-playerlist
Open

Fix: Add null checks for TheMessageStream and ThePlayerList before using them#119
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-null-checks-messagestream-playerlist

Conversation

@seer-by-sentry
Copy link

@seer-by-sentry seer-by-sentry bot commented Nov 8, 2025

Fixes CLIENT-SJ. The issue was that: Window messages trigger GameMessage creation before ThePlayerList is initialized, causing a read access violation in the GameMessage constructor.

  • Added null checks for TheMessageStream before appending messages in WinMain.cpp to prevent potential crashes when the message stream is not initialized.
  • Added a check for ThePlayerList and its local player in GameMessage constructor to handle early initialization scenarios where ThePlayerList might not be available yet, defaulting to player index 0 in such cases.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2527977

Not quite right? Click here to continue debugging with Seer.

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.

0 participants

Comments