diff options
author | Retro-Junk | 2016-08-17 22:46:12 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-18 08:08:06 +0200 |
commit | c62257f720f9d1c8dc6bccfc7b350b932eafa84f (patch) | |
tree | 6b4554eb336a59fe6c825d12c61d685611f32d2a /engines | |
parent | 912b3b15d2f11f12303d8dd7beb20c5f8716ea51 (diff) | |
download | scummvm-rg350-c62257f720f9d1c8dc6bccfc7b350b932eafa84f.tar.gz scummvm-rg350-c62257f720f9d1c8dc6bccfc7b350b932eafa84f.tar.bz2 scummvm-rg350-c62257f720f9d1c8dc6bccfc7b350b932eafa84f.zip |
FULLPIPE: Fix index overflow in StepArray::gotoNextPoint
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/statics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 45cf743e51..552a17e3eb 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -96,7 +96,7 @@ Common::Point *StepArray::getPoint(Common::Point *point, int index, int offset) } bool StepArray::gotoNextPoint() { - if (_currPointIndex < _maxPointIndex) { + if (_currPointIndex < _maxPointIndex - 1) { _currPointIndex++; return true; } else { |