Fix power meter crash

This commit is contained in:
Agent X 2024-06-10 08:06:21 -04:00
parent 6471da0a07
commit f18a3fef7d
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ void initiate_delayed_warp(void) {
void update_hud_values(void) {
if (gCurrCreditsEntry == NULL) {
s16 numHealthWedges = gMarioState->health > 0 ? gMarioState->health >> 8 : 0;
s16 numHealthWedges = gMarioState->health > 0 ? MIN(gMarioState->health >> 8, 8) : 0;
if (gCurrCourseNum >= COURSE_MIN) {
gHudDisplay.flags |= HUD_DISPLAY_FLAG_COIN_COUNT;