diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 21701e02d..54c1581d1 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -199,7 +199,14 @@ static void createGuiWindows() // Create dialogs CREATEWIDGETV0(emoteWindow, EmoteWindow); - CREATEWIDGETV0(chatWindow, ChatWindow); + delete2(debugChatTab) + if (chatWindow) + { + chatWindow->scheduleDelete(); + chatWindow = nullptr; + } + CREATEWIDGETV(chatWindow, ChatWindow, + "Chat"); CREATEWIDGETV0(tradeWindow, TradeWindow); CREATEWIDGETV(equipmentWindow, EquipmentWindow, PlayerInfo::getEquipment(), |