From acc7c231cc4a80bd0d2e2e9bad66a4b2bf3e7f49 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 29 Jun 2005 12:19:08 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6036 cda61777-01e9-0310-a592-d414129be87e --- mines.c | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.11.0