diff options
| author | Mario Lang <mlang@delysid.org> | 2008-09-01 20:31:03 +0200 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2008-09-01 20:31:03 +0200 |
| commit | 660d0b6ac14af2053b7f5bb3218d392a16d04828 (patch) | |
| tree | 473dfbc4285a26d1c2a4edd97bfa3374969178eb /chess-test.el | |
| parent | 955049f4e799b3025fb98d292a2b32e81ac539d7 (diff) | |
Fix a "off-by-one" thinko, database indexes are zero based.
Diffstat (limited to 'chess-test.el')
| -rw-r--r-- | chess-test.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-test.el b/chess-test.el index c54b91b..cf681e3 100644 --- a/chess-test.el +++ b/chess-test.el @@ -26,8 +26,8 @@ (let* ((db-count (chess-database-count database)) (ply-count 0) (index (if start - (max start 1) - 1)) + (1- start) + 0)) (last-index (if (and count (> count 0)) (min db-count (+ index count)) db-count)) |
