mirror of
https://github.com/sm64pc/sm64pc.git
synced 2025-04-12 00:05:59 +02:00
Fixed invalid messageID on menus (#529)
Fixed entering an invalid messageID state from copy menu, fixing the famous file select screen crash.
This commit is contained in:
parent
afc7e8da69
commit
54cd27ccee
@ -836,7 +836,7 @@ void check_copy_menu_clicked_buttons(struct Object *copyButton) {
|
||||
// If menu button clicked, select it
|
||||
if (buttonID == MENU_BUTTON_COPY_RETURN || buttonID == MENU_BUTTON_COPY_CHECK_SCORE
|
||||
|| buttonID == MENU_BUTTON_COPY_ERASE_FILE) {
|
||||
if (copyButton->oMenuButtonActionPhase == COPY_PHASE_MAIN) {
|
||||
if (copyButton->oMenuButtonActionPhase == COPY_PHASE_MAIN && sMainMenuTimer >= ACTION_TIMER) {
|
||||
play_sound(SOUND_MENU_CLICK_FILE_SELECT, gDefaultSoundArgs);
|
||||
sMainMenuButtons[buttonID]->oMenuButtonState = MENU_BUTTON_STATE_ZOOM_IN_OUT;
|
||||
sSelectedButtonID = buttonID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user