mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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]
This commit is contained in:
1
mines.c
1
mines.c
@ -1990,6 +1990,7 @@ static char *validate_desc(game_params *params, char *desc)
|
|||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
if (*desc == 'r') {
|
if (*desc == 'r') {
|
||||||
|
desc++;
|
||||||
if (!*desc || !isdigit((unsigned char)*desc))
|
if (!*desc || !isdigit((unsigned char)*desc))
|
||||||
return "No initial mine count in game description";
|
return "No initial mine count in game description";
|
||||||
while (*desc && isdigit((unsigned char)*desc))
|
while (*desc && isdigit((unsigned char)*desc))
|
||||||
|
Reference in New Issue
Block a user