]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
In BlockedStorm, theirPawns includes ones attacked by us.
[stockfish] / src / pawns.cpp
index 8354cc1510fb98de3facd3511555e141f9b89c09..3ce896309f530f057daeacf6320bb35d9eb26517 100644 (file)
@@ -202,7 +202,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) {
 
   Bitboard b = pos.pieces(PAWN) & ~forward_ranks_bb(Them, ksq);
   Bitboard ourPawns = b & pos.pieces(Us) & ~pawnAttacks[Them];
-  Bitboard theirPawns = b & pos.pieces(Them) & ~pawnAttacks[Us];
+  Bitboard theirPawns = b & pos.pieces(Them);
 
   Score bonus = make_score(5, 5);