X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=08ed1a89e1578f8202392c4bbf61daa8653fcda9;hb=0a01dd044f8a8f291127ebf60462773bf12c90c7;hp=ec9229ea33799e2b0234093912612d9d704d6845;hpb=e639c4557786513018f625ff96f04b63157a85c1;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index ec9229ea..08ed1a89 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1099,10 +1099,12 @@ bool Position::see_ge(Move m, Value threshold) const { // Don't allow pinned pieces to attack as long as there are // pinners on their original square. if (pinners(~stm) & occupied) + { stmAttackers &= ~blockers_for_king(stm); - if (!stmAttackers) - break; + if (!stmAttackers) + break; + } res ^= 1;