diff --git a/lib/chess-state.vala b/lib/chess-state.vala index 7688da6..c6c36c5 100644 --- a/lib/chess-state.vala +++ b/lib/chess-state.vala @@ -624,10 +624,15 @@ public class ChessState : Object rank = ranks; file = files; + + return found; } } - return found; + /* There is no King. (Must be a test rather than a real game!) */ + rank = {}; + file = {}; + return false; } public bool is_in_check (ChessPlayer player)