aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_play.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/actions/action_play.cpp')
-rw-r--r--engines/pink/objects/actions/action_play.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/pink/objects/actions/action_play.cpp b/engines/pink/objects/actions/action_play.cpp
index 9551f13424..b7b171d52e 100644
--- a/engines/pink/objects/actions/action_play.cpp
+++ b/engines/pink/objects/actions/action_play.cpp
@@ -65,8 +65,10 @@ void ActionPlay::onStart() {
if (_stopFrame == -1 || _stopFrame >= frameCount)
_stopFrame = frameCount - 1;
- if (_startFrame >= _decoder.getFrameCount())
- _startFrame = 0;
+ if (_startFrame >= _decoder.getFrameCount()) {
+ _actor->endAction();
+ return;
+ }
ActionCEL::setFrame(_startFrame);
// doesn't need to decode startFrame here. Update method will decode