From b0714ff514de8db1c49d48f18b7a8d25e9cf9200 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 8 Apr 2002 08:28:14 +0000 Subject: *** no comment *** --- chess-pos.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chess-pos.el') diff --git a/chess-pos.el b/chess-pos.el index 286047e..915e5b9 100644 --- a/chess-pos.el +++ b/chess-pos.el @@ -254,7 +254,7 @@ trying to move a blank square." ;; if a king or rook moves, no more castling; also, if a pawn ;; jumps ahead two, mark it en-passantable - (let ((piece (downcase (chess-pos-piece position (car changes))))) + (let ((piece (downcase (chess-pos-piece position (cadr changes))))) (cond ((and (= piece ?k) (equal (car changes) @@ -281,7 +281,7 @@ trying to move a blank square." (chess-pos-set-side-to-move position (not color)) ;; promote the piece if we were meant to - (let ((new-piece (cadr (assq :promote changes)))) + (let ((new-piece (cadr (memq :promote changes)))) (if new-piece (chess-pos-set-piece position (cadr changes) new-piece))) -- cgit v1.2.3