]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
No influence on unsafeSquares of passers by pieces
[stockfish] / src / evaluate.cpp
index 10dddc7de009c7c02251feb037c02e1793c83b75..23af60f36aede2d1adfa93eed2a04d56b8bd11a8 100644 (file)
@@ -641,7 +641,7 @@ namespace {
                 bb = forward_file_bb(Them, s) & pos.pieces(ROOK, QUEEN);
 
                 if (!(pos.pieces(Them) & bb))
                 bb = forward_file_bb(Them, s) & pos.pieces(ROOK, QUEEN);
 
                 if (!(pos.pieces(Them) & bb))
-                    unsafeSquares &= attackedBy[Them][ALL_PIECES] | pos.pieces(Them);
+                    unsafeSquares &= attackedBy[Them][ALL_PIECES];
 
                 // If there are no enemy attacks on passed pawn span, assign a big bonus.
                 // Otherwise assign a smaller bonus if the path to queen is not attacked
 
                 // If there are no enemy attacks on passed pawn span, assign a big bonus.
                 // Otherwise assign a smaller bonus if the path to queen is not attacked