X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=1d8b082ed449cb55281054b156721ba79deeaf42;hp=96664e5c072835d37e854b90d4c6b18d50dad81c;hb=76bed11f7b79d939c250c02d73d0c1e2628e7a17;hpb=e33c94883fb1767a8aae29e8004d0621d296e33b diff --git a/src/pawns.cpp b/src/pawns.cpp index 96664e5c..1d8b082e 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -197,8 +197,8 @@ PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) { for (Color us = WHITE; us <= BLACK; us++) { Color them = opposite_color(us); - Bitboard ourPawns = pos.pawns(us); - Bitboard theirPawns = pos.pawns(them); + Bitboard ourPawns = pos.pieces(us); + Bitboard theirPawns = pos.pieces(them); Bitboard pawns = ourPawns; // Initialize pawn storm scores by giving bonuses for open files @@ -392,7 +392,7 @@ PawnInfo* PawnInfoTable::get_pawn_info(const Position& pos) { int PawnInfo::updateShelter(const Position& pos, Color c, Square ksq) { unsigned shelter = 0; - Bitboard pawns = pos.pawns(c) & this_and_neighboring_files_bb(ksq); + Bitboard pawns = pos.pieces(c) & this_and_neighboring_files_bb(ksq); unsigned r = ksq & (7 << 3); for (int i = 1, k = (c ? -8 : 8); i < 4; i++) {