diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-20 19:46:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-20 19:46:12 +0300 |
commit | c42d25a77f5bd7bcd04636abded20452a753fa6d (patch) | |
tree | 1fb7756b329e3a6a581b5031c0679d50bb97c76d /src/game.cpp | |
parent | b594440ec6028a5f6915a6c8befd4b2570f88e4b (diff) | |
download | manaplus-c42d25a77f5bd7bcd04636abded20452a753fa6d.tar.gz manaplus-c42d25a77f5bd7bcd04636abded20452a753fa6d.tar.bz2 manaplus-c42d25a77f5bd7bcd04636abded20452a753fa6d.tar.xz manaplus-c42d25a77f5bd7bcd04636abded20452a753fa6d.zip |
Create gamemodifiers object at game init and destroy at game termination.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
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) |