From 5bb92efa5b0d80341c9c6d56867b88864f1bd191 Mon Sep 17 00:00:00 2001 From: TheXaman Date: Sat, 28 Nov 2020 00:51:38 +0100 Subject: [PATCH] now closes debug windows after giving all TMs --- src/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/debug.c b/src/debug.c index f83acb773..c4d5b1ecf 100644 --- a/src/debug.c +++ b/src/debug.c @@ -1539,6 +1539,8 @@ static void DebugAction_Give_AllTMs(u8 taskId) for (i = ITEM_TM01; i <= ITEM_TM50; i++) if(!CheckBagHasItem(i, 1)) AddBagItem(i, 1); + Debug_DestroyMenu(taskId); + EnableBothScriptContexts(); } //Pokemon