X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=e7a5732bb9d3f49b8dd201173a7029211d99518d;hb=d9e3be4790bb04820d80dacfedd162b4b03971f2;hp=64b833857b9976080db3b587715e8319f5da8e39;hpb=3a4d6e2034a872d9c8550a5024bacb3bd27dcad3;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 64b83385..e7a5732b 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -982,7 +982,7 @@ void Position::do_promotion_move(Move m) { assert(is_ok()); assert(move_is_ok(m)); - assert(move_promotion(m)); + assert(move_is_promotion(m)); us = side_to_move(); them = opposite_color(us); @@ -1290,7 +1290,7 @@ void Position::undo_promotion_move(Move m) { PieceType promotion; assert(move_is_ok(m)); - assert(move_promotion(m)); + assert(move_is_promotion(m)); // When we have arrived here, some work has already been done by // Position::undo_move. In particular, the side to move has been switched,