From: Steinar H. Gunderson Date: Sun, 7 Jan 2018 00:43:20 +0000 (+0100) Subject: Another castling fix. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=6dd4f0d4b11f86cc8490bbb0462259232fa80a7a Another castling fix. --- diff --git a/Position.pm b/Position.pm index cd0cc97..93bde53 100644 --- a/Position.pm +++ b/Position.pm @@ -84,7 +84,7 @@ sub from_fen { } } if ($castling =~ /k/) { - $pos->{'white_castle_k'} = _col_num_to_letter(_find_piece_col_from_right($board->[0], 'r')); + $pos->{'black_castle_k'} = _col_num_to_letter(_find_piece_col_from_right($board->[0], 'r')); } if ($castling =~ /q/) { $pos->{'black_castle_q'} = _col_num_to_letter(_find_piece_col($board->[0], 'r'));