[Scummvm-cvs-logs] scummvm master -> 797676678da7e6f510b2628c52b5191851615dfc

sev- sev at scummvm.org
Thu Aug 25 22:46:19 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
797676678d FULLPIPE: Fix gotoLastFrame() implementation


Commit: 797676678da7e6f510b2628c52b5191851615dfc
    https://github.com/scummvm/scummvm/commit/797676678da7e6f510b2628c52b5191851615dfc
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-08-25T22:45:55+02:00

Commit Message:
FULLPIPE: Fix gotoLastFrame() implementation

Changed paths:
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index de1fc77..d8956b5 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);
+		}
 	}
 }
 






More information about the Scummvm-git-logs mailing list