summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 04e17b47..ead469c2 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -95,6 +95,9 @@ FloorItem *ActorSpriteManager::createItem(int id, int itemId, int x, int y)
void ActorSpriteManager::destroy(ActorSprite *actor)
{
+ if (!actor || actor == player_node)
+ return;
+
mDeleteActors.push_back(actor);
}