From 4af995079ab49865697102f234951d94cd3f1e74 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Wed, 13 Jun 2018 20:36:39 +0300 Subject: PINK: fix playing looped ActionPlayWithSfx --- engines/pink/objects/actions/action_play_with_sfx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines') 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(); -- cgit v1.2.3