diff options
Diffstat (limited to 'flood.c')
| -rw-r--r-- | flood.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. |