summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b9eeb12b7..b90d9c293 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -227,7 +227,13 @@ static void createGuiWindows()
CREATEWIDGETV0(shopWindow, ShopWindow);
CREATEWIDGETV0(skillDialog, SkillDialog);
CREATEWIDGETV0(minimap, Minimap);
- CREATEWIDGETV0(debugWindow, DebugWindow);
+ if (debugWindow)
+ {
+ debugWindow->scheduleDelete();
+ debugWindow = nullptr;
+ }
+ CREATEWIDGETV(debugWindow, DebugWindow,
+ "Debug");
CREATEWIDGETV(itemShortcutWindow, ShortcutWindow,
"ItemShortcut", "items.xml", 83, 460);