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, 5 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 5e33b65d2..10bb05cf8 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -159,6 +159,11 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time)
mFrame = 0;
return false;
}
+ if (!mFrame->nextAction.empty())
+ {
+ play(mFrame->nextAction);
+ return true;
+ }
}
return true;