]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Retire one piece_list() overload
[stockfish] / src / pawns.cpp
index 3ad88fb206aa011ece4fb6dca4c75acf17edb758..c099153a2ca5d7e1038d15a6ca01e934fcdfa859 100644 (file)
@@ -127,10 +127,10 @@ Score PawnInfoTable::evaluate_pawns(const Position& pos, Bitboard ourPawns,
   Rank r;
   bool passed, isolated, doubled, opposed, chain, backward, candidate;
   Score value = SCORE_ZERO;
-  const Square* ptr = pos.piece_list_begin(Us, PAWN);
+  const Square* pl = pos.piece_list(Us, PAWN);
 
   // Loop through all pawns of the current color and score each pawn
-  while ((s = *ptr++) != SQ_NONE)
+  while ((s = *pl++) != SQ_NONE)
   {
       assert(pos.piece_on(s) == make_piece(Us, PAWN));