]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Rename piece_of_color_and_type() to make_piece()
[stockfish] / src / pawns.cpp
index 0846344223137f93a2372c737b6a553609e8c5a4..6fc2f2feb9479cf631366c6d03ca5afad5971999 100644 (file)
@@ -136,7 +136,7 @@ Score PawnInfoTable::evaluate_pawns(const Position& pos, Bitboard ourPawns,
   // Loop through all pawns of the current color and score each pawn
   while ((s = *ptr++) != SQ_NONE)
   {
-      assert(pos.piece_on(s) == piece_of_color_and_type(Us, PAWN));
+      assert(pos.piece_on(s) == make_piece(Us, PAWN));
 
       f = square_file(s);
       r = square_rank(s);