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:
parent
d7ef09727a
commit
7b05b83bf2
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue