[Scummvm-cvs-logs] scummvm master -> 4117af414e581046e47272cb4fee7c6fe7c82a22

Strangerke Strangerke at scummvm.org
Wed Dec 18 07:45:34 CET 2013


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:
4117af414e AVALANCHE: Fix out of bound access related to Pascal to C conversion


Commit: 4117af414e581046e47272cb4fee7c6fe7c82a22
    https://github.com/scummvm/scummvm/commit/4117af414e581046e47272cb4fee7c6fe7c82a22
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-12-17T22:44:40-08:00

Commit Message:
AVALANCHE: Fix out of bound access related to Pascal to C conversion

Changed paths:
    engines/avalanche/nim.cpp



diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index 2629b99..ec2c605 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -300,7 +300,7 @@ void Nim::dogFood() {
 		} while (sorted);
 		
 		// Now we look for A.P.s...
-		for (int i = 1; i <= 3; i++) {
+		for (int i = 0; i < 3; i++) {
 			findAp(i, 1); // There are 3 "1"s.
 			if (_lmo)
 				return; // Cut - out.






More information about the Scummvm-git-logs mailing list