From 4ff543b22a19ffccfec2d176e2cb0b92b13de2e1 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 8 Jun 2014 22:07:14 +0300 Subject: FULLPIPE: Fix lockup on game start --- engines/fullpipe/statics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index ec8514143e..292ef08914 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -1766,8 +1766,8 @@ Common::Point *Movement::calcSomeXY(Common::Point &p, int idx, int dynidx) { setOXY(x, y); - while (_currDynamicPhaseIndex != dynidx) - gotoNextFrame(0, 0); + while (_currDynamicPhaseIndex != dynidx && gotoNextFrame(0, 0)) + ; p.x = _ox; p.y = _oy; -- cgit v1.2.3