diff options
Diffstat (limited to 'apps/plugins/puzzles/src/pattern.c')
-rw-r--r-- | apps/plugins/puzzles/src/pattern.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/pattern.c b/apps/plugins/puzzles/src/pattern.c index 9a74e55318..15cdd281c9 100644 --- a/apps/plugins/puzzles/src/pattern.c +++ b/apps/plugins/puzzles/src/pattern.c | |||
@@ -179,6 +179,8 @@ static char *validate_params(const game_params *params, int full) | |||
179 | { | 179 | { |
180 | if (params->w <= 0 || params->h <= 0) | 180 | if (params->w <= 0 || params->h <= 0) |
181 | return "Width and height must both be greater than zero"; | 181 | return "Width and height must both be greater than zero"; |
182 | if (params->w * params->w < 2) | ||
183 | return "Grid must contain at least two squares"; | ||
182 | return NULL; | 184 | return NULL; |
183 | } | 185 | } |
184 | 186 | ||