Skip to content

Fix: Prevent null dereference when getting observer color#354

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/observer-color-null-check
Open

Fix: Prevent null dereference when getting observer color#354
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/observer-color-null-check

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-3ST. The issue was that: MultiplayerSettings::getColor returns null for PLAYERTEMPLATE_OBSERVER, leading to null pointer dereference in GameSlot::getApparentColor.

  • Added a null check for the MultiplayerColorDefinition object returned by TheMultiplayerSettings->getColor(PLAYERTEMPLATE_OBSERVER).
  • Prevents a potential crash in GameSlot::getApparentColor if the observer color definition is not found.

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

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