X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=88ef25d2c819a195e4eb2d5df8c7c22bfb279a2d;hp=22c17173c5727cd016a0bca109f7c2f62cc9c3a7;hb=d3c3c4f8e7d2f7e388baf5279d83354fea74b07b;hpb=2097cd12217a0e18c59bd88424ca613572e6feb2 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; } }