Skip to content

DozerAIUpdate: Add null check for controlling player before accessing player index#118

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-dozer-ai-null-player
Open

DozerAIUpdate: Add null check for controlling player before accessing player index#118
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix-dozer-ai-null-player

Conversation

@seer-by-sentry
Copy link

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

Fixes CLIENT-SC. The issue was that: DozerPrimaryIdleState::update dereferences NULL result from dozer->getControllingPlayer() when registering an idle worker.

  • Added a null check for the controlling player of the dozer before attempting to access its player index.
  • If the controlling player is null, the function now returns STATE_FAILURE to prevent potential crashes.

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

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