aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/actions/action_play_with_sfx.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/pink/objects/actions/action_play_with_sfx.cpp b/engines/pink/objects/actions/action_play_with_sfx.cpp
index 6d0bb7aa91..2e94098f39 100644
--- a/engines/pink/objects/actions/action_play_with_sfx.cpp
+++ b/engines/pink/objects/actions/action_play_with_sfx.cpp
@@ -52,9 +52,7 @@ void ActionPlayWithSfx::toConsole() {
void ActionPlayWithSfx::update() {
int currFrame = _decoder.getCurFrame();
if (_isLoop && currFrame == _stopFrame) {
- assert(_stopFrame == _decoder.getFrameCount() - 1); // to use ring frame
- assert(_startFrame == 0); // same
- _decoder.rewind();
+ setFrame(_startFrame);
decodeNext();
} else
ActionPlay::update();