X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=8f38493027b07e9f8c273ae95d73f046ea8026b3;hp=325f3e4db6b2ce023eadef0e575e0245237ec0f3;hb=e5c3effdb1fee10a694e493773e62f433e642406;hpb=db05b1f9f576e80373ca73899df21226fcb4ac8d diff --git a/src/position.cpp b/src/position.cpp index 325f3e4d..8f384930 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1077,7 +1077,6 @@ int Position::see(Move m) const { // Add the new entry to the swap list swapList[slIndex] = -swapList[slIndex - 1] + PieceValue[MG][captured]; - ++slIndex; // Locate and remove the next least valuable attacker captured = min_attacker(byTypeBB, to, stmAttackers, occupied, attackers); @@ -1086,10 +1085,9 @@ int Position::see(Move m) const { // Stop before processing a king capture if (captured == KING && stmAttackers) - { - swapList[slIndex++] = QueenValueMg * 16; break; - } + + ++slIndex; } while (stmAttackers);