diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-30 19:32:39 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-30 19:32:39 +0000 |
| commit | d4993c54eb9b6ab904db8ed43189ac0b561092aa (patch) | |
| tree | f01a18bc5e25f86335a55fd5b8c6b22c197ac913 /chess-puzzle.el | |
| parent | f8cec448f1d65c0576734e26bb239979409835a9 (diff) | |
bug fixes
Diffstat (limited to 'chess-puzzle.el')
| -rw-r--r-- | chess-puzzle.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-puzzle.el b/chess-puzzle.el index 84ca6f5..53de243 100644 --- a/chess-puzzle.el +++ b/chess-puzzle.el @@ -63,12 +63,12 @@ making it easy to go on to the next puzzle once you've solved one." next-game) (if (= index (length chess-puzzle-indices)) (chess-message 'end-of-puzzles) + ;; setup and load the next puzzle position (setq chess-puzzle-position (1+ chess-puzzle-position)) (if (null (setq next-game (chess-database-read database (aref chess-puzzle-indices index)))) - (chess-error 'bag-game-read - (aref chess-puzzle-indices index)) + (chess-error 'bag-game-read (aref chess-puzzle-indices index)) (chess-display-set-game nil next-game 0) (chess-game-set-data game 'my-color (chess-pos-side-to-move (chess-game-pos game))) |
