minor fix

This commit is contained in:
Karma Riuk 2025-02-03 19:08:21 +01:00
parent 4eaed699c0
commit be34045f92

View File

@ -186,7 +186,7 @@ Board Board::make_move(Move move) const {
ret.squares[move.target_square - 8] = Piece::None;
// -- Handle promotion
if (move.promoting_to != 0)
if (move.promoting_to != Piece::None)
ret.squares[move.target_square] = move.promoting_to;
// -- Set en passant target if need