mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:35:07 +00:00
parent
1888e60015
commit
90fc28152b
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ Move Move::from_algebraic(StringView algebraic, const Color turn, const Board& b
|
||||||
}
|
}
|
||||||
return IterationDecision::Continue;
|
return IterationDecision::Continue;
|
||||||
} else {
|
} else {
|
||||||
if (board.get_piece(square).type == move.piece.type && board.is_legal(Move(square, move.to), turn)) {
|
if (board.get_piece(square).type == move.piece.type && board.is_legal(Move(square, move.to, move.promote_to), turn)) {
|
||||||
move.from = square;
|
move.from = square;
|
||||||
return IterationDecision::Break;
|
return IterationDecision::Break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue