Skip to content

Fix: Add null check for m_curState in W3DModelDraw - #182

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/w3dmodeldraw-mcurstate-nullcheck
Open

Fix: Add null check for m_curState in W3DModelDraw#182
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/w3dmodeldraw-mcurstate-nullcheck

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-187. The issue was that: W3DModelDraw::adjustTransformMtx dereferenced a NULL m_curState pointer, causing an access violation read.

  • Added a null check for 'm_curState' before accessing its 'm_flags' member when checking the 'ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT' flag in W3DModelDraw.cpp, preventing potential crashes.

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

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