Skip to content

W3DModelDraw: Fix out-of-bounds access in weapon barrel selection - #115

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-weapon-barrel-index
Open

W3DModelDraw: Fix out-of-bounds access in weapon barrel selection#115
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-weapon-barrel-index

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Nov 7, 2025

Copy link
Copy Markdown

Fixes CLIENT-S2. The issue was that: W3DModelDraw::handleWeaponFireFX crashes attempting to access weapon barrel information using an invalid index (0x0) passed from the weapon firing logic.

  • Corrected the weapon barrel selection logic to prevent out-of-bounds access when specificBarrelToUse is equal to wbvec.size().

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

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