From e9e46d8272b19f86496a731b619d4784a11a5495 Mon Sep 17 00:00:00 2001 From: ravepossum <145081120+ravepossum@users.noreply.github.com> Date: Wed, 3 Jan 2024 17:27:10 -0500 Subject: [PATCH] Fix debug menu flags not redrawing correctly after PR 3796 (#3916) * Fix debug menu flags not redrawing correctly after PR 3796 * Update src/debug.c Co-authored-by: Bassoonian --------- Co-authored-by: ravepossum Co-authored-by: Bassoonian --- src/debug.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index a298e31b0e..103f3fd2ea 100644 --- a/src/debug.c +++ b/src/debug.c @@ -1437,8 +1437,16 @@ static void DebugTask_HandleMenuInput_FlagsVars(u8 taskId) PlaySE(SE_SELECT); if ((func = sDebugMenu_Actions_Flags[input]) != NULL) { - Debug_RedrawListMenu(taskId); - func(taskId); + if (input == DEBUG_FLAGVAR_MENU_ITEM_FLAGS || input == DEBUG_FLAGVAR_MENU_ITEM_VARS) + { + Debug_RedrawListMenu(taskId); + func(taskId); + } + else + { + func(taskId); + Debug_RedrawListMenu(taskId); + } // Remove TRUE/FALSE window for functions that haven't been assigned flags if (gTasks[taskId].tInput == 0xFF)