Fix a couple of robustness issues.

[originally from svn r5873]
This commit is contained in:
Simon Tatham
2005-05-31 08:56:33 +00:00
parent 2698fc9e9e
commit 412344ff9a
2 changed files with 6 additions and 2 deletions

View File

@ -2089,6 +2089,8 @@ static game_state *new_game(midend_data *me, game_params *params, char *desc)
state->layout->me = me;
} else {
state->layout->rs = NULL;
state->layout->me = NULL;
state->layout->mines = snewn(wh, char);
x = atoi(desc);