[Scummvm-cvs-logs] scummvm master -> c62257f720f9d1c8dc6bccfc7b350b932eafa84f

sev- sev at scummvm.org
Thu Aug 18 08:08:24 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c62257f720 FULLPIPE: Fix index overflow in StepArray::gotoNextPoint


Commit: c62257f720f9d1c8dc6bccfc7b350b932eafa84f
    https://github.com/scummvm/scummvm/commit/c62257f720f9d1c8dc6bccfc7b350b932eafa84f
Author: Retro-Junk (bambarbee at yandex.ru)
Date: 2016-08-18T08:08:06+02:00

Commit Message:
FULLPIPE: Fix index overflow in StepArray::gotoNextPoint

Changed paths:
    engines/fullpipe/statics.cpp



diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 45cf743..552a17e 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 {






More information about the Scummvm-git-logs mailing list