minor fix
This commit is contained in:
parent
4eaed699c0
commit
be34045f92
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user