summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index d7a272284..e28f999fd 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -792,8 +792,9 @@ void ActorManager::logic()
FOR_EACH (ActorSpritesConstIterator, it, mDeleteActors)
{
- mActors.erase(*it);
- delete *it;
+ ActorSprite *actor = *it;
+ mActors.erase(actor);
+ delete actor;
}
mDeleteActors.clear();