aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 7b9737bdf9..83a0de0670 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1979,8 +1979,8 @@ void Movement::removeFirstPhase() {
_dynamicPhases.remove_at(0);
for (uint i = 0; i < _dynamicPhases.size(); i++) {
- _framePosOffsets[i - 1]->x = _framePosOffsets[i]->x;
- _framePosOffsets[i - 1]->y = _framePosOffsets[i]->y;
+ _framePosOffsets[i]->x = _framePosOffsets[i + 1]->x;
+ _framePosOffsets[i]->y = _framePosOffsets[i + 1]->y;
}
}
_currDynamicPhaseIndex--;