Skip to content

bugfix(AI): Re-validate target before firing to prevent attacking dead units#424

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/ai-target-validation
Open

bugfix(AI): Re-validate target before firing to prevent attacking dead units#424
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/ai-target-validation

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-45X. The issue was that: Dangling pointer to a destroyed victim object is dereferenced during weapon firing, causing an access violation.

  • Added a check to re-validate the AI's target immediately before firing a weapon.
  • Ensures the AI does not attempt to fire at targets that are null or effectively dead.
  • Returns STATE_FAILURE if the victim is invalid or dead at the moment of firing, preventing potential errors.

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

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