]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Fix king value in SEE
[stockfish] / src / position.cpp
index 480a92ec9cfcd1a7e3850aea8fbc94f61c570ece..3ae7f50ddae6a99e0c5bb6dbbbefd1ea00e3d84a 100644 (file)
@@ -1594,7 +1594,7 @@ int Position::see(Square from, Square to) const {
       if (pt == KING && stmAttackers)
       {
           assert(n < 32);
-          swapList[n++] = 100;
+          swapList[n++] = QueenValueMidgame*10;
           break;
       }
   } while (stmAttackers);