diff options
Diffstat (limited to 'mines.c')
| -rw-r--r-- | mines.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -279,6 +279,8 @@ static const char *validate_params(const game_params *params, bool full) return "Width times height must not be unreasonably large"; if (params->n < 0) return "Mine count may not be negative"; + if (params->n < 1) + return "Number of mines must be greater than zero"; if (params->n > params->w * params->h - 9) return "Too many mines for grid size"; |