X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=ca4156dac522d76eefee8919bad2d9ab5ecf2724;hp=f60411993fcc0877ed83a8a632f25945018aa9db;hb=d232a4ae684eccd829fd703a1872c1e0e17aaee9;hpb=defa1ccaa9c145b0ccff38a1ae660c052d753e81 diff --git a/src/pawns.cpp b/src/pawns.cpp index f6041199..ca4156da 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -198,7 +198,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) { b = theirPawns & file_bb(f); int theirRank = b ? relative_rank(Us, frontmost_sq(Them, b)) : 0; - int d = std::min(f, ~f); + File d = map_to_queenside(f); bonus += make_score(ShelterStrength[d][ourRank], 0); if (ourRank && (ourRank == theirRank - 1))