aboutsummaryrefslogtreecommitdiff
path: root/flood.c
diff options
context:
space:
mode:
Diffstat (limited to 'flood.c')
-rw-r--r--flood.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/flood.c b/flood.c
index bbba915..f97de2f 100644
--- a/flood.c
+++ b/flood.c
@@ -697,8 +697,10 @@ static char *solve_game(const game_state *state, const game_state *currstate,
char buf[256];
struct solver_scratch *scratch;
- if (currstate->complete)
+ if (currstate->complete) {
+ *error = "Puzzle is already solved";
return NULL;
+ }
/*
* Find the best solution our solver can give.