From 16b95fdbcada684a634aaad36960562c79904f72 Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 14 Oct 2020 20:03:05 -0700 Subject: [PATCH] Prevent cursor from going past array in course completion screen --- src/game/ingame_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index 324aa561..4911373d 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -3158,7 +3158,7 @@ void render_save_confirmation(s16 x, s16 y, s8 *index, s16 sp6e) u8 textContinueWithoutSave[] = { TEXT_CONTINUE_WITHOUT_SAVING }; #endif - handle_menu_scrolling(MENU_SCROLL_VERTICAL, index, 1, 4); // Increased to '4' to handle Exit Game + handle_menu_scrolling(MENU_SCROLL_VERTICAL, index, 1, 2); // decreased to '2' to prevent Exit Game gSPDisplayList(gDisplayListHead++, dl_ia_text_begin); gDPSetEnvColor(gDisplayListHead++, 255, 255, 255, gDialogTextAlpha);