X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=6fc2f2feb9479cf631366c6d03ca5afad5971999;hp=0846344223137f93a2372c737b6a553609e8c5a4;hb=c2511243b40964e5ed5f35447baf5663a72da72a;hpb=0ddf84870ad9f7fb4309e992e1e5eae968577958 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);