mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -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");
|
printf("]\n");
|
||||||
|
|
||||||
while (1) {
|
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);
|
st = new_game(NULL, p, desc);
|
||||||
diff = solver_state(st, p->diff);
|
diff = solver_state(st, p->diff);
|
||||||
nspaces += st->w*st->h;
|
nspaces += st->w*st->h;
|
||||||
|
Reference in New Issue
Block a user