]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Cleanup code
[stockfish] / src / position.cpp
index ec9229ea33799e2b0234093912612d9d704d6845..08ed1a89e1578f8202392c4bbf61daa8653fcda9 100644 (file)
@@ -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;