Skip to content

[GEN][ZH] Fix possible division by zero in W3DCommandBarGenExpDraw()#810

Merged
xezon merged 1 commit into
TheSuperHackers:mainfrom
Mauller:fix-zero-division-in-w3dcontrolbar
May 5, 2025
Merged

[GEN][ZH] Fix possible division by zero in W3DCommandBarGenExpDraw()#810
xezon merged 1 commit into
TheSuperHackers:mainfrom
Mauller:fix-zero-division-in-w3dcontrolbar

Conversation

@Mauller

@Mauller Mauller commented May 4, 2025

Copy link
Copy Markdown

This PR prevents a possible division by zero from occuring when player progress is calculated.

@Mauller Mauller self-assigned this May 4, 2025
@Mauller Mauller added Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour Fix Is fixing something, but is not user facing and removed Bug Something is not working right, typically is user facing labels May 4, 2025

@Skyaero42 Skyaero42 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@xezon xezon added Crash This is a crash, very bad Mod Relates to Mods or modding and removed Gen Relates to Generals ZH Relates to Zero Hour labels May 5, 2025
@Mauller Mauller force-pushed the fix-zero-division-in-w3dcontrolbar branch from b643498 to 15ff8ef Compare May 5, 2025 14:17
@Mauller

Mauller commented May 5, 2025

Copy link
Copy Markdown
Author

Tweaked and pushed.

@Mauller Mauller force-pushed the fix-zero-division-in-w3dcontrolbar branch from 15ff8ef to e7f45ff Compare May 5, 2025 17:14
@xezon xezon added this to the Stability fixes milestone May 5, 2025
@xezon xezon merged commit afd9c30 into TheSuperHackers:main May 5, 2025
@xezon xezon deleted the fix-zero-division-in-w3dcontrolbar branch May 5, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Crash This is a crash, very bad Fix Is fixing something, but is not user facing Minor Severity: Minor < Major < Critical < Blocker Mod Relates to Mods or modding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Division by zero crash in W3DCommandBarGenExpDraw() when experience points for level up are 0

3 participants