diff options
author | Retro-Junk | 2016-09-11 00:22:48 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-10 23:55:46 +0200 |
commit | 9ef6980770425ebd37ec4cb7d8af1d006eea5d3b (patch) | |
tree | 35b0d8412dc591020a0803b7049389c6b32a3774 /engines | |
parent | 45732d0b03ed12fd48bf63d5daa6e8f8703aa130 (diff) | |
download | scummvm-rg350-9ef6980770425ebd37ec4cb7d8af1d006eea5d3b.tar.gz scummvm-rg350-9ef6980770425ebd37ec4cb7d8af1d006eea5d3b.tar.bz2 scummvm-rg350-9ef6980770425ebd37ec4cb7d8af1d006eea5d3b.zip |
FULLPIPE: Fix out of bounds write in Movement::removeFirstPhase
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 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--; |