diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/statics.cpp | 4 |
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; |