fix debug menu toggling first flag (#3796)

This commit is contained in:
DizzyEggg 2023-12-22 11:26:43 +01:00 committed by GitHub
parent c9e9b4906a
commit 91741cb60f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1437,6 +1437,7 @@ static void DebugTask_HandleMenuInput_FlagsVars(u8 taskId)
PlaySE(SE_SELECT);
if ((func = sDebugMenu_Actions_Flags[input]) != NULL)
{
Debug_RedrawListMenu(taskId);
func(taskId);
// Remove TRUE/FALSE window for functions that haven't been assigned flags
@ -1446,8 +1447,6 @@ static void DebugTask_HandleMenuInput_FlagsVars(u8 taskId)
RemoveWindow(gTasks[taskId].tSubWindowId);
Free(sDebugMenuListData);
}
else
Debug_RedrawListMenu(taskId);
}
}
else if (JOY_NEW(B_BUTTON))