From: Simon Tatham Date: Sat, 17 Apr 2010 13:27:12 +0000 (+0000) Subject: Fix from James H for an assertion failure during Signpost X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=945d8f0a3a9bfe2702170a75484271c71931b2eb;p=sgt-puzzles.git Fix from James H for an assertion failure during Signpost generation. To reproduce, try 'signpost --generate 1 7x7#12345-162'. [originally from svn r8921] --- diff --git a/signpost.c b/signpost.c index d4812a2..b6db3a3 100644 --- a/signpost.c +++ b/signpost.c @@ -752,6 +752,7 @@ static int new_game_strip(game_state *state, random_state *rs) copy->flags[j] |= FLAG_IMMUTABLE; state->flags[j] |= FLAG_IMMUTABLE; debug_state("Copy of state: ", copy); + strip_nums(copy); if (solve_state(copy) > 0) goto solved; assert(check_nums(state, copy, 1)); }