diff --git a/Userland/Libraries/LibChess/Chess.cpp b/Userland/Libraries/LibChess/Chess.cpp index e50ec108fc..6d56ecd1f0 100644 --- a/Userland/Libraries/LibChess/Chess.cpp +++ b/Userland/Libraries/LibChess/Chess.cpp @@ -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; }