summaryrefslogtreecommitdiff
path: root/chess-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-test.el')
-rw-r--r--chess-test.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/chess-test.el b/chess-test.el
index 8df18a9..77fbc6d 100644
--- a/chess-test.el
+++ b/chess-test.el
@@ -25,9 +25,7 @@
(message "Running validation suite...")
(let* ((db-count (chess-database-count database))
(ply-count 0)
- (index (if start
- (1- start)
- 0))
+ (index (or start 0))
(last-index (if (and count (> count 0))
(min db-count (+ index count))
db-count))