Skip to content

Fix: Prevent null dereference of physics object in JetAIUpdate#363

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/jet-ai-physics-null-check
Open

Fix: Prevent null dereference of physics object in JetAIUpdate#363
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/jet-ai-physics-null-check

Conversation

@seer-by-sentry
Copy link

Fixes CLIENT-3TZ. The issue was that: JetAIUpdate dereferences a null PhysicsBehavior pointer when calculating velocity magnitude, causing a fatal read access violation.

  • Added null checks for the physics pointer before dereferencing it in JetAIUpdate.cpp.
  • Prevents potential crashes if the physics object is null when attempting to get its velocity magnitude or set max lift.

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

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