mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
galaxiessolver: fix soak-test mode.
It called new_game_desc with aux=NULL. But new_game_desc unconditionally writes through aux, expecting it to be valid always.
This commit is contained in:
@ -4153,7 +4153,9 @@ static void soak(game_params *p, random_state *rs)
|
||||
printf("]\n");
|
||||
|
||||
while (1) {
|
||||
desc = new_game_desc(p, rs, NULL, false);
|
||||
char *aux;
|
||||
desc = new_game_desc(p, rs, &aux, false);
|
||||
sfree(aux);
|
||||
st = new_game(NULL, p, desc);
|
||||
diff = solver_state(st, p->diff);
|
||||
nspaces += st->w*st->h;
|
||||
|
Reference in New Issue
Block a user