summaryrefslogtreecommitdiff
path: root/chess-game.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-05-01 22:19:10 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-05-01 22:19:10 +0000
commit22b47d6e2731685cf0f2618499fa772c26328482 (patch)
treeec4170423c92b28cbd0e922a75b353345123a856 /chess-game.el
parentc649d124baa42c1207d94ae5f6ed5e4f33b7c3f2 (diff)
*** no comment ***
Diffstat (limited to 'chess-game.el')
-rw-r--r--chess-game.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/chess-game.el b/chess-game.el
index f8e1101..4a82b04 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -228,6 +228,7 @@ This conveys the status of the game at the given index."
"Undo the last COUNT plies of GAME."
(assert game)
(assert (integerp count))
+ (assert (> count 0))
(if (> count (chess-game-index game))
(chess-error 'undo-limit-reached))
(let ((chess-game-inhibit-events t))