X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=d5514e2eaea411e474e1802230ac1da2985ec95b;hp=52bc9f88eea5eb031931cfe1aa17dce81fde575e;hb=5c5af4fa6533e22fb56dd22985cf2b3938efde6c;hpb=efd21679980dfd59320a5e238f44952873353829 diff --git a/src/pawns.cpp b/src/pawns.cpp index 52bc9f88..d5514e2e 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -223,7 +223,7 @@ Score PawnInfo::updateShelter(const Position& pos, Square ksq) { if (relative_rank(Us, ksq) <= RANK_4) { - pawns = pos.pieces(PAWN, Us) & this_and_neighboring_files_bb(ksq); + pawns = pos.pieces(PAWN, Us) & this_and_neighboring_files_bb(file_of(ksq)); r = ksq & (7 << 3); for (int i = 0; i < 3; i++) {