Skip to content

Fix division by zero in power bar GUI updates - #204

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

Fix division by zero in power bar GUI updates#204
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/power-bar-div-by-zero

Conversation

@seer-by-sentry

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

Copy link
Copy Markdown

Fixes CLIENT-1GA. The issue was that: Image height was zero, causing integer division by zero when calculating repeating UI pieces in W3DCommandBarGenExpDraw.

  • Added validation checks for center bar image dimensions (width/height) in power bar update functions.
  • Prevents potential division by zero errors if image dimensions are zero or negative.
  • Applied to Update_Power_Bar_Horizontal, Update_Power_Bar_Horizontal_3_Piece, Update_Power_Bar_Vertical, and Update_Power_Bar_Vertical_3_Piece.

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

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