summaryrefslogtreecommitdiff
path: root/chess-clock.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 06:58:52 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 06:58:52 +0000
commit1bd7dd39c4af6b7b774b278c6d759ab002744bc8 (patch)
tree151174c8232c1fb66a9e9640edb53bf148caf17b /chess-clock.el
parent2ad08a62d61297cb4fad53976b41068e63e3e459 (diff)
*** no comment ***
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)