Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 17, 2023

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
@briaguya-ai briaguya-ai 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