mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 15:46:24 +08:00
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 <mcostalba@gmail.com>
This commit is contained in:
@@ -867,8 +867,6 @@ void Position::do_capture_move(PieceType capture, Color them, Square to) {
|
||||
st->mgValue -= pst<MidGame>(them, capture, to);
|
||||
st->egValue -= pst<EndGame>(them, capture, to);
|
||||
|
||||
assert(!move_promotion(m) || capture != PAWN);
|
||||
|
||||
// Update material
|
||||
if (capture != PAWN)
|
||||
npMaterial[them] -= piece_value_midgame(capture);
|
||||
|
||||
Reference in New Issue
Block a user