Fix power meter crash
This commit is contained in:
parent
6471da0a07
commit
f18a3fef7d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue