summaryrefslogtreecommitdiff
path: root/chess-clock.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-clock.el')
-rw-r--r--chess-clock.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-clock.el b/chess-clock.el
index 3c8208a..3ded9a9 100644
--- a/chess-clock.el
+++ b/chess-clock.el
@@ -35,9 +35,9 @@
(cond
((eq event 'initialize)
(unless (chess-game-data game 'white-remaining)
- (chess-game-set-data game 'white-remaining (float (car args))))
+ (chess-game-set-data game 'white-remaining (float (or (car args) 0))))
(unless (chess-game-data game 'black-remaining)
- (chess-game-set-data game 'black-remaining (float (car args))))
+ (chess-game-set-data game 'black-remaining (float (or (car args) 0))))
(setq chess-clock-timer
(run-with-timer 0 1 'chess-clock-tick-tock (current-buffer)))
t)