summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 082ceda14..e90536b2d 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -70,7 +70,8 @@ ActorSprite::~ActorSprite()
for (ActorSpriteListenerIterator iter = mActorSpriteListeners.begin(),
e = mActorSpriteListeners.end(); iter != e; ++iter)
{
- (*iter)->actorSpriteDestroyed(*this);
+ if (*iter)
+ (*iter)->actorSpriteDestroyed(*this);
}
}