X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=6fc2f2feb9479cf631366c6d03ca5afad5971999;hp=0846344223137f93a2372c737b6a553609e8c5a4;hb=2ff2b5972799c2cb1b68e2d82e35b9b3c7c6996d;hpb=5b2ac7590ccfe529698347981e45fdfa8a0a0780 diff --git a/src/pawns.cpp b/src/pawns.cpp index 08463442..6fc2f2fe 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -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);