summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index b4249fe..0644ed2 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -81,7 +81,7 @@
((eq event 'pass)
(if (and (chess-game-get-data (chess-engine-game nil) 'active)
- (= (chess-game-index game) 0))
+ (= (chess-game-index (chess-engine-game nil)) 0))
(message "Your opponent has passed the first move to you"))
t)