summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9fe4c2508..776dd8621 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -439,6 +439,8 @@ Game::~Game()
delete2(actorManager)
if (client->getState() != STATE_CHANGE_MAP)
delete2(localPlayer)
+ if (effectManager)
+ effectManager->clear();
delete2(effectManager)
delete2(particleEngine)
delete2(viewport)
@@ -622,6 +624,8 @@ void Game::slowLogic()
config.writeUpdated();
serverConfig.writeUpdated();
}
+ if (effectManager)
+ effectManager->logic();
}
if (mainGraphics->getOpenGL())