summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-20 19:46:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-20 19:46:12 +0300
commitc42d25a77f5bd7bcd04636abded20452a753fa6d (patch)
tree1fb7756b329e3a6a581b5031c0679d50bb97c76d
parentb594440ec6028a5f6915a6c8befd4b2570f88e4b (diff)
downloadmv-c42d25a77f5bd7bcd04636abded20452a753fa6d.tar.gz
mv-c42d25a77f5bd7bcd04636abded20452a753fa6d.tar.bz2
mv-c42d25a77f5bd7bcd04636abded20452a753fa6d.tar.xz
mv-c42d25a77f5bd7bcd04636abded20452a753fa6d.zip
Create gamemodifiers object at game init and destroy at game termination.
-rw-r--r--src/game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2535f539d..877204a4d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -33,6 +33,7 @@
#include "effectmanager.h"
#include "emoteshortcut.h"
#include "eventsmanager.h"
+#include "gamemodifiers.h"
#include "guildmanager.h"
#include "itemshortcut.h"
#include "soundmanager.h"
@@ -140,6 +141,7 @@ static void initEngines()
actorManager = new ActorManager;
commandHandler = new CommandHandler;
effectManager = new EffectManager;
+ modifiers = new GameModifiers;
AuctionManager::init();
GuildManager::init();
@@ -419,6 +421,7 @@ Game::~Game()
AnimatedSprite::setEnableCache(false);
+ delete2(modifiers);
delete2(actorManager)
if (client->getState() != STATE_CHANGE_MAP)
delete2(player_node)