Skip to content

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-2JF. The issue was that: Object's controlling player is null, leading to a read access violation when getDefaultTeam() is called on the null pointer.

  • Introduce a local 'controllingPlayer' variable to cache the result of 'getObject()->getControllingPlayer()'.
  • Add null checks for 'controllingPlayer' to prevent crashes when accessing player-related data.
  • In 'createViewObject', use the object's team as a fallback if the controlling player is null.
  • In 'aboutToDoSpecialPower', add an early return if 'controllingPlayer' is null to avoid further operations that require a valid player.

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

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