summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 13:59:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 13:59:48 +0300
commitb32500a2241cc7fbd21e0996e77d0ce0875a33fc (patch)
tree7a2031f39e3cc3c4126bf156e47504b68289f38e
parenta603cf32c1491e1a943d77b76e0f2362babcd7b8 (diff)
downloadplus-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.tar.gz
plus-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.tar.bz2
plus-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.tar.xz
plus-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.zip
Fix crash in emulated guild tab deletion.
-rw-r--r--src/game.cpp9
1 files 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;