aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-25 23:02:12 +0200
committerEugene Sandulenko2016-08-25 23:02:12 +0200
commitf27c001527a8f6221553ba98fbb9a4da129a1c11 (patch)
tree1faf05055bc1cc85a8c73e9280eef80fd210b369
parent797676678da7e6f510b2628c52b5191851615dfc (diff)
downloadscummvm-rg350-f27c001527a8f6221553ba98fbb9a4da129a1c11.tar.gz
scummvm-rg350-f27c001527a8f6221553ba98fbb9a4da129a1c11.tar.bz2
scummvm-rg350-f27c001527a8f6221553ba98fbb9a4da129a1c11.zip
FULLPIPE: Another fix to gotoLastFrame()
-rw-r--r--engines/fullpipe/statics.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index d8956b5b38..e0fc1f6b04 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -2154,8 +2154,11 @@ void Movement::gotoFirstFrame() {
void Movement::gotoLastFrame() {
if (_currMovement) {
- while ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1)
- gotoNextFrame(0, 0);
+ if ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1) {
+ do {
+ gotoNextFrame(0, 0);
+ } while ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1);
+ }
} else {
if ((uint)_currDynamicPhaseIndex != _dynamicPhases.size() - 1) {
do {