From c62257f720f9d1c8dc6bccfc7b350b932eafa84f Mon Sep 17 00:00:00 2001 From: Retro-Junk Date: Wed, 17 Aug 2016 22:46:12 +0300 Subject: FULLPIPE: Fix index overflow in StepArray::gotoNextPoint --- engines/fullpipe/statics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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 { -- cgit v1.2.3