aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-09-01 12:17:14 +0000
committerSimon Tatham <anakin@pobox.com>2005-09-01 12:17:14 +0000
commitbd5606ae74aa6b070d980230c56fe337a47bc4a7 (patch)
treeff18718813cfb8579a9e0b65bac11545e2ab42cc
parent643f468255f9f9fd16767f5f420c5db32e931b3b (diff)
downloadpuzzles-bd5606ae74aa6b070d980230c56fe337a47bc4a7.zip
puzzles-bd5606ae74aa6b070d980230c56fe337a47bc4a7.tar.gz
puzzles-bd5606ae74aa6b070d980230c56fe337a47bc4a7.tar.bz2
puzzles-bd5606ae74aa6b070d980230c56fe337a47bc4a7.tar.xz
Optimiser placation.
[originally from svn r6257]
-rw-r--r--lightup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lightup.c b/lightup.c
index 7af44e3..ad5d669 100644
--- a/lightup.c
+++ b/lightup.c
@@ -2306,6 +2306,7 @@ int main(int argc, char **argv)
/* Run the solvers easiest to hardest until we find one that
* can solve our puzzle. If it's soluble we know that the
* hardest (recursive) solver will always find the solution. */
+ nsol = sflags = 0;
for (diff = 0; diff <= DIFFCOUNT; diff++) {
printf("\nSolving with difficulty %d.\n", diff);
sflags = flags_from_difficulty(diff);