aboutsummaryrefslogtreecommitdiff
path: root/unfinished
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2020-06-09 14:22:31 +0100
committerSimon Tatham <anakin@pobox.com>2020-06-09 14:38:33 +0100
commit9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4 (patch)
tree52b1cc51a52d651f87625f061a2b7339da98a17f /unfinished
parent66b9e8c7de0eecb3d85d9a1766fab1082848448b (diff)
downloadpuzzles-9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4.zip
puzzles-9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4.tar.gz
puzzles-9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4.tar.bz2
puzzles-9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4.tar.xz
Group: fix assertion failure in Unreasonable generation.
Generating the game id 6dui#12345 would cause an assertion failure in a call to latin_solver_place that should never have happened in the first place, because the "return -1" that ought to have prevented it was accidentally inside #ifdef STANDALONE_SOLVER.
Diffstat (limited to 'unfinished')
-rw-r--r--unfinished/group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unfinished/group.c b/unfinished/group.c
index 7acadac..006a9e0 100644
--- a/unfinished/group.c
+++ b/unfinished/group.c
@@ -404,8 +404,8 @@ static int solver_normal(struct latin_solver *solver, void *vctx)
solver_recurse_depth*4, "",
names[j-1], i, j);
}
- return -1;
#endif
+ return -1;
}
#ifdef STANDALONE_SOLVER
if (solver_show_working) {
@@ -425,8 +425,8 @@ static int solver_normal(struct latin_solver *solver, void *vctx)
solver_recurse_depth*4, "",
names[j-1], j, i);
}
- return -1;
#endif
+ return -1;
}
#ifdef STANDALONE_SOLVER
if (solver_show_working) {