diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pink/objects/actions/action_play.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/pink/objects/actions/action_play.cpp b/engines/pink/objects/actions/action_play.cpp index fb4f05f0cb..9551f13424 100644 --- a/engines/pink/objects/actions/action_play.cpp +++ b/engines/pink/objects/actions/action_play.cpp @@ -64,7 +64,10 @@ void ActionPlay::onStart() { int frameCount = _decoder.getFrameCount(); if (_stopFrame == -1 || _stopFrame >= frameCount) _stopFrame = frameCount - 1; - assert(_startFrame < _decoder.getFrameCount()); + + if (_startFrame >= _decoder.getFrameCount()) + _startFrame = 0; + ActionCEL::setFrame(_startFrame); // doesn't need to decode startFrame here. Update method will decode } |