summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 27be02e36..fedcd8de2 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -154,8 +154,8 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time)
mFrameIndex = 0;
mFrame = mAnimation->getFrame(mFrameIndex);
-
- if (mFrame->type == Frame::LABEL && !mFrame->nextAction.empty())
+ if (!mFrame || (mFrame->type == Frame::LABEL
+ && !mFrame->nextAction.empty()))
{
fail = true;
}