Skip to content

Fix: Add null check for m_detonationWeaponTmpl before using it - #135

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-null-check-detonation-weapon
Open

Fix: Add null check for m_detonationWeaponTmpl before using it#135
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-null-check-detonation-weapon

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-VR. The issue was that: DumbProjectileBehavior::projectileHandleCollision dereferenced the uninitialized null pointer m_detonationWeaponTmpl when calling WeaponTemplate::shouldProjectileCollideWith.

  • Added a null check for m_detonationWeaponTmpl before calling shouldProjectileCollideWith to prevent potential null pointer dereferences.
  • The check is added in DumbProjectileBehavior.cpp and MissileAIUpdate.cpp in both Generals and GeneralsMD projects.

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

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