From: Marco Costalba Date: Mon, 30 Mar 2009 10:12:52 +0000 (+0200) Subject: Fix compile in the debug mode X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7b05b83bf2f69b1fac0271acd28b2382253f2e37;ds=sidebyside Fix compile in the debug mode Due to previous patches we end up with a compile error in debug mode. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/position.cpp b/src/position.cpp index cdbd9f0d..06323311 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -867,8 +867,6 @@ void Position::do_capture_move(PieceType capture, Color them, Square to) { st->mgValue -= pst(them, capture, to); st->egValue -= pst(them, capture, to); - assert(!move_promotion(m) || capture != PAWN); - // Update material if (capture != PAWN) npMaterial[them] -= piece_value_midgame(capture);