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);
RemoveWindow(gTasks[taskId].data[2]);
DestroyListMenuTask(gTasks[taskId].data[0], NULL, NULL);
DestroyTask(taskId);
ScriptContext_Enable();
UnfreezeObjectEvents();