summaryrefslogtreecommitdiff
path: root/chess-game.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-game.el')
-rw-r--r--chess-game.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-game.el b/chess-game.el
index 7c90b38..e5c93b7 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -203,7 +203,7 @@ This conveys the status of the game at the given index."
(defsubst chess-game-over-p (game)
"Return the position related to GAME's INDEX position."
- (let ((last-ply (car (last game 2))))
+ (let ((last-ply (car (last (nth 3 game) 2))))
(and last-ply (chess-ply-final-p last-ply))))