aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-06-29 12:19:08 +0000
committerSimon Tatham <anakin@pobox.com>2005-06-29 12:19:08 +0000
commit074f11edc42902d8f8f97736c78e20d6b99c3dc8 (patch)
tree575fdfac4aff85ec0bcf9f1a202dfb129c4dedc7
parent238a6d08fec5836687fb9a3f27aa22cdfc49d852 (diff)
downloadpuzzles-074f11edc42902d8f8f97736c78e20d6b99c3dc8.zip
puzzles-074f11edc42902d8f8f97736c78e20d6b99c3dc8.tar.gz
puzzles-074f11edc42902d8f8f97736c78e20d6b99c3dc8.tar.bz2
puzzles-074f11edc42902d8f8f97736c78e20d6b99c3dc8.tar.xz
Validation of random-state-type game descriptions was broken. This
meant that a Mines game saved before the first click had taken place could not be successfully reloaded. [originally from svn r6036]
-rw-r--r--mines.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mines.c b/mines.c
index 612ade5..d2ec395 100644
--- a/mines.c
+++ b/mines.c
@@ -1990,6 +1990,7 @@ static char *validate_desc(game_params *params, char *desc)
int x, y;
if (*desc == 'r') {
+ desc++;
if (!*desc || !isdigit((unsigned char)*desc))
return "No initial mine count in game description";
while (*desc && isdigit((unsigned char)*desc))