aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-08 22:07:14 +0300
committerEugene Sandulenko2014-06-08 22:07:39 +0300
commit4ff543b22a19ffccfec2d176e2cb0b92b13de2e1 (patch)
tree24dede34fb10c7655fe7ea52944d60c02c623d5d /engines
parentec62d1e99fff011555357a0e13eb530d23080eaf (diff)
downloadscummvm-rg350-4ff543b22a19ffccfec2d176e2cb0b92b13de2e1.tar.gz
scummvm-rg350-4ff543b22a19ffccfec2d176e2cb0b92b13de2e1.tar.bz2
scummvm-rg350-4ff543b22a19ffccfec2d176e2cb0b92b13de2e1.zip
FULLPIPE: Fix lockup on game start
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/statics.cpp4
1 files changed, 2 insertions, 2 deletions
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;