chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f8b08
)
Fix from James H for an assertion failure during Signpost
author
Simon Tatham
<anakin@pobox.com>
Sat, 17 Apr 2010 13:27:12 +0000
(13:27 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 17 Apr 2010 13:27:12 +0000
(13:27 +0000)
generation. To reproduce, try 'signpost --generate 1 7x7#12345-162'.
[originally from svn r8921]
signpost.c
patch
|
blob
|
history
diff --git
a/signpost.c
b/signpost.c
index d4812a2777bf6da206b1316e182e17935529933c..b6db3a3b01e06df71804e16eac4e201df7edee84 100644
(file)
--- 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));
}