mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-23 00:42:13 -07:00
Fix from James H for an assertion failure during Signpost
generation. To reproduce, try 'signpost --generate 1 7x7#12345-162'. [originally from svn r8921]
This commit is contained in:
@ -752,6 +752,7 @@ static int new_game_strip(game_state *state, random_state *rs)
|
|||||||
copy->flags[j] |= FLAG_IMMUTABLE;
|
copy->flags[j] |= FLAG_IMMUTABLE;
|
||||||
state->flags[j] |= FLAG_IMMUTABLE;
|
state->flags[j] |= FLAG_IMMUTABLE;
|
||||||
debug_state("Copy of state: ", copy);
|
debug_state("Copy of state: ", copy);
|
||||||
|
strip_nums(copy);
|
||||||
if (solve_state(copy) > 0) goto solved;
|
if (solve_state(copy) > 0) goto solved;
|
||||||
assert(check_nums(state, copy, 1));
|
assert(check_nums(state, copy, 1));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user