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 <iasperbassoonian@gmail.com> --------- Co-authored-by: ravepossum <ravepossum@example.com> Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
This commit is contained in:
parent
973dae73be
commit
e9e46d8272
1 changed files with 10 additions and 2 deletions
12
src/debug.c
12
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)
|
||||
|
|
Loading…
Reference in a new issue