diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-17 00:58:32 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-17 00:58:32 +0000 |
| commit | 94d73f17d2c3db6584b8d379441b21bdf1bdb3bd (patch) | |
| tree | 900944cf5b2269646cb3d95c301c544f9f332d9b /chess-pos.el | |
| parent | d52df702489c8571c01ca64350560521ad3f0dc5 (diff) | |
*** no comment ***
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))) |
