summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
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;