summaryrefslogtreecommitdiff
path: root/chess.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess.el')
-rw-r--r--chess.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/chess.el b/chess.el
index db6cd86..e422629 100644
--- a/chess.el
+++ b/chess.el
@@ -110,9 +110,9 @@ a0 243
(intern (or (read-string "Engine module to play against: ")
"chess-none"))
chess-default-engine)))
- (when engine-module
- (require engine-module)
- (chess-engine-set-game (chess-engine-create engine-module) game)))))
+ (if (and engine-module
+ (require engine-module nil t))
+ (chess-engine-set-game (chess-engine-create engine-module) game)))))
(cons display engine)))
;;;###autoload