From b32500a2241cc7fbd21e0996e77d0ce0875a33fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 May 2015 13:59:48 +0300 Subject: Fix crash in emulated guild tab deletion. --- src/game.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index 41f6ff760..3a47f0716 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -343,6 +343,10 @@ static void destroyGuiWindows() delete2(battleChatTab) delete2(langChatTab) delete2(gmChatTab); +#ifdef TMWA_SUPPORT + if (guildManager && GuildManager::getEnableGuildBot()) + guildManager->reload(); +#endif logger->log("start deleting"); delete2(emoteWindow); delete2(chatWindow) @@ -373,11 +377,6 @@ static void destroyGuiWindows() delete2(questsWindow); delete2(whoIsOnline); delete2(killStats); - -#ifdef TMWA_SUPPORT - if (guildManager && GuildManager::getEnableGuildBot()) - guildManager->reload(); -#endif } Game *Game::mInstance = nullptr; -- cgit v1.2.3-70-g09d2