diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-27 20:52:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-27 20:52:52 +0300 |
commit | eb8269b40570333ce6a2787dd55f5081c73c14a7 (patch) | |
tree | c188726062675b4dcda0f27d1b57019a6a532949 /src/game.cpp | |
parent | 4f0c828135c37a176d97927e7e51b14dc84a719c (diff) | |
download | plus-eb8269b40570333ce6a2787dd55f5081c73c14a7.tar.gz plus-eb8269b40570333ce6a2787dd55f5081c73c14a7.tar.bz2 plus-eb8269b40570333ce6a2787dd55f5081c73c14a7.tar.xz plus-eb8269b40570333ce6a2787dd55f5081c73c14a7.zip |
Fix guild reload if change nick on same account.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 6a3a63bb6..8df48b775 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -178,7 +178,10 @@ static void initEngines() channelManager = new ChannelManager; effectManager = new EffectManager; if (!guildManager) + { guildManager = new GuildManager; + guildManager->init(); + } particleEngine = new Particle(NULL); particleEngine->setupEngine(); @@ -334,6 +337,9 @@ static void destroyGuiWindows() del_0(didYouKnowWindow); Mana::Event::trigger(CHANNEL_GAME, Mana::Event(EVENT_GUIWINDOWSUNLOADED)); + + if (guildManager && guildManager->getEnableGuildBot()) + guildManager->reload(); } Game *Game::mInstance = 0; |