[Scummvm-cvs-logs] scummvm master -> 299a96c049c6e92d949a6213f4444c2892df539f

lordhoto lordhoto at gmail.com
Mon Jan 11 14:12:44 CET 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:
299a96c049 AVALANCE: Fix out of bounds array access.


Commit: 299a96c049c6e92d949a6213f4444c2892df539f
    https://github.com/scummvm/scummvm/commit/299a96c049c6e92d949a6213f4444c2892df539f
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2016-01-11T14:10:53+01:00

Commit Message:
AVALANCE: Fix out of bounds array access.

Thanks to uruk for checking on this.

Changed paths:
    engines/avalanche/nim.cpp



diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index 79be16d..b17af87 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -524,7 +524,7 @@ void Nim::dogFood() {
 		// 1) Look for 2 equal lines, then take the odd one out.
 		// 2) Look for A.P.s, and capitalise on them.
 		// 3) Go any old where.
-		const byte other[3][2] = { { 2, 3 }, { 1, 3 }, { 1, 2 } };
+		const byte other[3][2] = { { 1, 2 }, { 0, 2 }, { 0, 1 } };
 
 		for (int i = 0; i < 3; i++) { // Look for 2 equal lines.
 			if (_stones[other[i][0]] == _stones[other[i][1]]) {






More information about the Scummvm-git-logs mailing list