diff options
Diffstat (limited to 'chess-pos.el')
| -rw-r--r-- | chess-pos.el | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |
