diff options
Diffstat (limited to 'apps/plugins/puzzles/src/mines.c')
-rw-r--r-- | apps/plugins/puzzles/src/mines.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/mines.c b/apps/plugins/puzzles/src/mines.c index c9d9852573..ae717d3f37 100644 --- a/apps/plugins/puzzles/src/mines.c +++ b/apps/plugins/puzzles/src/mines.c | |||
@@ -258,6 +258,8 @@ static const char *validate_params(const game_params *params, bool full) | |||
258 | */ | 258 | */ |
259 | if (full && params->unique && (params->w <= 2 || params->h <= 2)) | 259 | if (full && params->unique && (params->w <= 2 || params->h <= 2)) |
260 | return "Width and height must both be greater than two"; | 260 | return "Width and height must both be greater than two"; |
261 | if (params->n < 0) | ||
262 | return "Mine count may not be negative"; | ||
261 | if (params->n > params->w * params->h - 9) | 263 | if (params->n > params->w * params->h - 9) |
262 | return "Too many mines for grid size"; | 264 | return "Too many mines for grid size"; |
263 | if (params->n < 1) | 265 | if (params->n < 1) |