mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
parent
1888e60015
commit
90fc28152b
Notes:
sideshowbarker
2024-07-17 16:43:13 +09:00
Author: https://github.com/danners
Commit: 90fc28152b
Pull-request: https://github.com/SerenityOS/serenity/pull/13276
Issue: https://github.com/SerenityOS/serenity/issues/13268
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;
|
||||
} 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;
|
||||
return IterationDecision::Break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue