Skip to content

Commit

Permalink
Fix mosaic's validate_desc: 9 is valid
Browse files Browse the repository at this point in the history
This rejected valid games that include a '9' clue.

Fixes #582.
  • Loading branch information
chrisboyle committed Jan 17, 2023
1 parent 6d39d14 commit 643640f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/jni/mosaic.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ static const char *validate_desc(const game_params *params,
while (*curr_desc != '\0') {
if (*curr_desc >= 'a' && *curr_desc <= 'z') {
length += *curr_desc - 'a';
} else if (*curr_desc < '0' || *curr_desc >= '9')
} else if (*curr_desc < '0' || *curr_desc > '9')
return "Invalid character in game description";
length++;
curr_desc++;
Expand Down

0 comments on commit 643640f

Please sign in to comment.