X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=e1952b60260d8a8a55666450f923f4d41a8d73ce;hp=d05e8af0cd3cf6783410339c3bfff14ca5bf059a;hb=e05c80a08859f6c4f0f599ca0b262ced00ad66fe;hpb=5ea984ac3515946d952bd3c9cfe8e8baef7cc85d diff --git a/src/pawns.cpp b/src/pawns.cpp index d05e8af0..e1952b60 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -93,7 +93,7 @@ namespace { Rank r; bool passed, isolated, doubled, opposed, chain, backward, candidate; Score value = SCORE_ZERO; - const Square* pl = pos.piece_list(Us, PAWN); + const Square* pl = pos.list(Us); Bitboard ourPawns = pos.pieces(Us, PAWN); Bitboard theirPawns = pos.pieces(Them, PAWN); @@ -103,7 +103,7 @@ namespace { e->semiopenFiles[Us] = 0xFF; e->pawnAttacks[Us] = shift_bb(ourPawns) | shift_bb(ourPawns); e->pawnsOnSquares[Us][BLACK] = popcount(ourPawns & BlackSquares); - e->pawnsOnSquares[Us][WHITE] = pos.piece_count(Us, PAWN) - e->pawnsOnSquares[Us][BLACK]; + e->pawnsOnSquares[Us][WHITE] = pos.count(Us) - e->pawnsOnSquares[Us][BLACK]; // Loop through all pawns of the current color and score each pawn while ((s = *pl++) != SQ_NONE)