minor fix
This commit is contained in:
@ -186,7 +186,7 @@ Board Board::make_move(Move move) const {
|
|||||||
ret.squares[move.target_square - 8] = Piece::None;
|
ret.squares[move.target_square - 8] = Piece::None;
|
||||||
|
|
||||||
// -- Handle promotion
|
// -- Handle promotion
|
||||||
if (move.promoting_to != 0)
|
if (move.promoting_to != Piece::None)
|
||||||
ret.squares[move.target_square] = move.promoting_to;
|
ret.squares[move.target_square] = move.promoting_to;
|
||||||
|
|
||||||
// -- Set en passant target if need
|
// -- Set en passant target if need
|
||||||
|
Reference in New Issue
Block a user