From 643640ff23860082a30e5727734e6bc421a5da14 Mon Sep 17 00:00:00 2001 From: Chris Boyle Date: Tue, 17 Jan 2023 22:37:58 +0000 Subject: [PATCH] Fix mosaic's validate_desc: 9 is valid This rejected valid games that include a '9' clue. Fixes #582. --- app/src/main/jni/mosaic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/jni/mosaic.c b/app/src/main/jni/mosaic.c index e33921fa2..98819593d 100644 --- a/app/src/main/jni/mosaic.c +++ b/app/src/main/jni/mosaic.c @@ -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++;