Skip to content

fix division by zero when calculating animation duration - #198

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/anim-duration-div-zero
Open

fix division by zero when calculating animation duration#198
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/anim-duration-div-zero

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Jan 3, 2026

Copy link
Copy Markdown

Fixes CLIENT-1EH. The issue was that: Animation duration calculation divides by zero when Get_Frame_Rate() returns 0.0, causing a fatal crash.

  • Added checks for a positive frame rate (frameRate > 0.0f) before calculating animation natural duration (m_naturalDurationInMsec) to prevent division by zero errors.
  • If the frame rate is zero or negative, the natural duration is set to 0.0f.
  • Applied similar frame rate checks in W3DModelDraw::Set_Animation_Duration before calculating the animation frame rate multiplier.

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

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