From 94d73f17d2c3db6584b8d379441b21bdf1bdb3bd Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 17 Apr 2002 00:58:32 +0000 Subject: *** no comment *** --- chess-pos.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chess-pos.el') diff --git a/chess-pos.el b/chess-pos.el index a07f64d..9fe2648 100644 --- a/chess-pos.el +++ b/chess-pos.el @@ -525,7 +525,7 @@ indices which indicate where a piece may have moved from." ;; prune from the discovered candidates list any moves which would ;; leave the king in check; castling through check has already ;; been eliminated. - (if (char-valid-p piece) + (if (and candidates (char-valid-p piece)) (setq candidates (apply 'chess-pos-legal-moves position color target candidates))) -- cgit v1.2.3