summaryrefslogtreecommitdiff
path: root/chess-game.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-game.el')
-rw-r--r--chess-game.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/chess-game.el b/chess-game.el
index cae650f..3214eb2 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -207,8 +207,7 @@ progress (nil), if it is drawn, resigned, mate, etc."
(position (chess-ply-pos ply)))
(if (chess-ply-final-p current-ply)
(error "Cannot add moves to a completed game"))
- (unless (equal position (chess-ply-pos current-ply))
- (error "Positions do not match"))
+ (assert (equal position (chess-ply-pos current-ply)))
(chess-ply-set-changes current-ply changes)
(chess-game-add-ply game (chess-ply-create
(chess-ply-next-pos current-ply)))