X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=0289854792fa015d985a113d3cc96a079a66a22a;hp=46e5d78b9ae567a0c2846528ea059259e62430cf;hb=5f1843c9cb55afcd3fb1da9e9dc4b0092f25d9f0;hpb=3542033342f15625f808013b69aa8c2d274a2f91 diff --git a/src/position.cpp b/src/position.cpp index 46e5d78b..02898547 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1145,8 +1145,8 @@ bool Position::see_ge(Move m, Value threshold) const { // Don't allow pinned pieces to attack (except the king) as long as // there are pinners on their original square. - if (st->pinners[~stm] & occupied) - stmAttackers &= ~st->blockersForKing[stm]; + if (pinners(~stm) & occupied) + stmAttackers &= ~blockers_for_king(stm); if (!stmAttackers) break;