summaryrefslogtreecommitdiff
path: root/chess-sound.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-sound.el')
-rw-r--r--chess-sound.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-sound.el b/chess-sound.el
index b6c9669..cb6c95c 100644
--- a/chess-sound.el
+++ b/chess-sound.el
@@ -57,7 +57,8 @@
(file-readable-p (expand-file-name "move.wav"
chess-sound-directory))
(or (eq chess-sound-play-function 'play-sound-file)
- (file-executable-p chess-sound-program))))
+ (and chess-sound-program
+ (file-executable-p chess-sound-program)))))
((eq event 'move)
(let* ((ply (chess-game-ply game (1- (chess-game-index game))))