1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00: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:
Marco Costalba 2009-03-30 12:12:52 +02:00
parent d7ef09727a
commit 7b05b83bf2

View file

@ -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);