]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Fix a silly bug
[stockfish] / src / position.cpp
index 22c17173c5727cd016a0bca109f7c2f62cc9c3a7..88ef25d2c819a195e4eb2d5df8c7c22bfb279a2d 100644 (file)
@@ -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;
       }
   }