From d3c3c4f8e7d2f7e388baf5279d83354fea74b07b Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Sat, 30 Mar 2013 19:59:34 +0000 Subject: [PATCH] Fix a silly bug --- src/position.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index 22c17173..88ef25d2 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1237,10 +1237,10 @@ int Position::do_see(Move m, int asymmThreshold) const { // FIXME: Document if (Asymmetric) { - for (int i = 0; i < slIndex ; slIndex += 2) + for (int i = 0; i < slIndex ; i += 2) { - if (swapList[slIndex] < asymmThreshold) - swapList[slIndex] = - QueenValueMg * 16; + if (swapList[i] < asymmThreshold) + swapList[i] = - QueenValueMg * 16; } } -- 2.39.2