Skip to content

Commit

Permalink
FULLPIPE: Fix index overflow in StepArray::gotoNextPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Retro-Junk authored and sev- committed Aug 18, 2016
1 parent 912b3b1 commit c62257f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/fullpipe/statics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c62257f

Please sign in to comment.