Skip to content

fix(drawable): Prevent crash from null tint envelope in OverlordTank/TruckDraw - #587

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/client-1rx-null-tint-envelope
Open

fix(drawable): Prevent crash from null tint envelope in OverlordTank/TruckDraw#587
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/client-1rx-null-tint-envelope

Conversation

@sentry

@sentry sentry Bot commented Sep 3, 2026

Copy link
Copy Markdown

This PR addresses CLIENT-1RX by adding null checks for the result of getDrawable()->getColorTintEnvelope() before dereferencing it in W3DOverlordTankDraw::doDrawModule and W3DOverlordTruckDraw::doDrawModule.

The previous implementation would crash with an EXCEPTION_ACCESS_VIOLATION_READ if getColorTintEnvelope() returned null, as it was immediately dereferenced to pass to setColorTintEnvelope.

The fix mirrors the safe pattern already present in W3DOverlordAircraftDraw, ensuring that the tint envelope is only applied if it is non-null.

Fixes CLIENT-1RX

This PR was automatically generated by Sentry. You can adjust this setting at any time.

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