diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 13:59:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 13:59:48 +0300 |
commit | b32500a2241cc7fbd21e0996e77d0ce0875a33fc (patch) | |
tree | 7a2031f39e3cc3c4126bf156e47504b68289f38e /src | |
parent | a603cf32c1491e1a943d77b76e0f2362babcd7b8 (diff) | |
download | mv-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.tar.gz mv-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.tar.bz2 mv-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.tar.xz mv-b32500a2241cc7fbd21e0996e77d0ce0875a33fc.zip |
Fix crash in emulated guild tab deletion.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 9 |
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; |