mirror of
https://github.com/sm64pc/sm64ex.git
synced 2025-01-22 15:43:04 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue