Fix from James H for an assertion failure during Signpost
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 17 Apr 2010 13:27:12 +0000 (13:27 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 17 Apr 2010 13:27:12 +0000 (13:27 +0000)
generation. To reproduce, try 'signpost --generate 1 7x7#12345-162'.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8921 cda61777-01e9-0310-a592-d414129be87e

signpost.c

index d4812a2..b6db3a3 100644 (file)
@@ -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));
     }