From 4117af414e581046e47272cb4fee7c6fe7c82a22 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 18 Dec 2013 07:44:40 +0100 Subject: AVALANCHE: Fix out of bound access related to Pascal to C conversion --- engines/avalanche/nim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp index 2629b99854..ec2c6055b5 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. -- cgit v1.2.3