fix debug menu not removing task (#3088)

This commit is contained in:
DizzyEggg 2023-06-29 20:11:02 +02:00 committed by GitHub
parent e21fcda54c
commit 1e2a613bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -750,6 +750,7 @@ static void DebugAction_DestroyExtraWindow(u8 taskId)
ClearStdWindowAndFrame(gTasks[taskId].data[2], TRUE); ClearStdWindowAndFrame(gTasks[taskId].data[2], TRUE);
RemoveWindow(gTasks[taskId].data[2]); RemoveWindow(gTasks[taskId].data[2]);
DestroyListMenuTask(gTasks[taskId].data[0], NULL, NULL);
DestroyTask(taskId); DestroyTask(taskId);
ScriptContext_Enable(); ScriptContext_Enable();
UnfreezeObjectEvents(); UnfreezeObjectEvents();