]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Remove xxx_of_color() for real
[stockfish] / src / pawns.cpp
index 6fd3e215b6fbee634489d76690fd101e5de5a89f..0aacec0026544b9f768fcd33641d09e7c38fb31e 100644 (file)
@@ -216,7 +216,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);