Skip to content

bugfix(W3DModelDraw): Guard setModelState call in replaceIndicatorColor#413

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/w3dmodeldraw-null-state
Open

bugfix(W3DModelDraw): Guard setModelState call in replaceIndicatorColor#413
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/w3dmodeldraw-null-state

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-455. The issue was that: Access violation in W3DModelDraw::setModelState due to premature call during Drawable construction before W3DModelDraw's internal state is fully initialized.

  • Added a null check for m_curState before attempting to regenerate the model state in replaceIndicatorColor.
  • Prevents setModelState from being called with a null state pointer when replaceIndicatorColor is invoked during early object initialization.
  • Ensures the m_hexColor update is correctly applied, deferring state regeneration until the draw module is fully initialized.

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

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