summaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 14:21:16 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 14:21:16 +0100
commit8e81450c561b626b919ecce37b61491cbcc8c103 (patch)
treea568100d1c015a43b176fbf795cb227cddbca7fa /src/game/game.cpp
parentb3ab2d0a77bb154fbeb21745771e3c006b26ffb9 (diff)
Free effects' memory when they disappear.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 1619de0..285f75d 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -155,7 +155,7 @@ void state_t::tick(double now_, double dt_)
for (auto i = std::begin(effects); i != std::end(effects);) {
if (now > (*i)->ttl) {
(*i)->unlink();
- //delete *i; FIXME
+ delete *i;
i = effects.erase(i);
} else
i++;