]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Small trivial cleanups
[stockfish] / src / position.cpp
index 46e5d78b9ae567a0c2846528ea059259e62430cf..0289854792fa015d985a113d3cc96a079a66a22a 100644 (file)
@@ -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;