X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=8dfb75a9d40692aaffb769895548a58c1b272556;hp=6fd3e215b6fbee634489d76690fd101e5de5a89f;hb=16abc165d84b390c175ade5d1b19b1dab703129b;hpb=c97104e8540b72ee2c6c9c13d3773d2c0f9ec32f diff --git a/src/pawns.cpp b/src/pawns.cpp index 6fd3e215..8dfb75a9 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -26,6 +26,7 @@ #include #include "pawns.h" +#include "position.h" //// @@ -216,7 +217,7 @@ PawnInfo *PawnInfoTable::get_pawn_info(const Position &pos) { File f = square_file(s); Rank r = square_rank(s); - assert(pos.piece_on(s) == pawn_of_color(us)); + assert(pos.piece_on(s) == piece_of_color_and_type(us, PAWN)); // The file containing the pawn is not half open pi->halfOpenFiles[us] &= ~(1 << f);