summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 1014fbe46..1dc5b16c8 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -143,8 +143,11 @@ bool AnimatedSprite::update(int time)
bool AnimatedSprite::updateCurrentAnimation(unsigned int time)
{
// move code from Animation::isTerminator(*mFrame)
- if (!mFrame || !mAnimation || (!mFrame->image && mFrame->type == Frame::ANIMATION))
+ if (!mFrame || !mAnimation || (!mFrame->image
+ && mFrame->type == Frame::ANIMATION))
+ {
return false;
+ }
mFrameTime += time;