diff options
author | Eugene Sandulenko | 2016-08-25 22:45:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-25 22:45:55 +0200 |
commit | 797676678da7e6f510b2628c52b5191851615dfc (patch) | |
tree | d7dc57f8e3323ddac9358dafa0b35c214008786a /engines/fullpipe/statics.cpp | |
parent | 967ef350d29106580baa48ab63cfaeff7c628ae8 (diff) | |
download | scummvm-rg350-797676678da7e6f510b2628c52b5191851615dfc.tar.gz scummvm-rg350-797676678da7e6f510b2628c52b5191851615dfc.tar.bz2 scummvm-rg350-797676678da7e6f510b2628c52b5191851615dfc.zip |
FULLPIPE: Fix gotoLastFrame() implementation
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r-- | engines/fullpipe/statics.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index de1fc77b13..d8956b5b38 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -2157,8 +2157,11 @@ void Movement::gotoLastFrame() { while ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1) gotoNextFrame(0, 0); } else { - while ((uint)_currDynamicPhaseIndex != _dynamicPhases.size() - 1) - gotoNextFrame(0, 0); + if ((uint)_currDynamicPhaseIndex != _dynamicPhases.size() - 1) { + do { + gotoNextFrame(0, 0); + } while ((uint)_currDynamicPhaseIndex != _dynamicPhases.size() - 1); + } } } |