Skip to content

Fix: Prevent controller LED crash when set to health#3507

Merged
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
Archez:fix-led-crash
Dec 17, 2023
Merged

Fix: Prevent controller LED crash when set to health#3507
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
Archez:fix-led-crash

Conversation

@Archez
Copy link
Contributor

@Archez Archez commented Dec 10, 2023

A crash would occur on SoH boot if the controller LED source was set to Link's health due to a divide-by-zero with a null/uninitialized save context. I'm adding a gPlayState and healthCapacity check to prevent this from occurring.

Build Artifacts

@jbodner09
Copy link
Contributor

Closes #3511

@Archez Archez linked an issue Dec 14, 2023 that may be closed by this pull request
@briaguya0 briaguya0 merged commit f65b711 into HarbourMasters:develop-macready Dec 17, 2023
@Archez Archez deleted the fix-led-crash branch December 17, 2023 05:53
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.

Crash at startup if PS4 controller LED is set to option "Health Colors"

3 participants