mirror of https://github.com/sm64pc/sm64pc.git
Fixed invalid messageID on menus
Fixed entering an invalid messageID state from copy menu, fixing the famous file select screen crash.
This commit is contained in:
parent
afc7e8da69
commit
93612799e1
|
@ -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…
Reference in New Issue