From c42d25a77f5bd7bcd04636abded20452a753fa6d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Jul 2014 19:46:12 +0300 Subject: Create gamemodifiers object at game init and destroy at game termination. --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-70-g09d2