diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-03-12 12:41:23 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-03-12 14:24:19 +0000 |
| commit | 08009f3949b5cf6edfd36e904dd8abadb19dd7ba (patch) | |
| tree | 6c9da032e29fc33154b8f467ec4bcc241027499a | |
| parent | 1dfc38c2ec40e726d7dd764cd0176e3bdf5ff008 (diff) | |
| download | puzzles-08009f3949b5cf6edfd36e904dd8abadb19dd7ba.zip puzzles-08009f3949b5cf6edfd36e904dd8abadb19dd7ba.tar.gz puzzles-08009f3949b5cf6edfd36e904dd8abadb19dd7ba.tar.bz2 puzzles-08009f3949b5cf6edfd36e904dd8abadb19dd7ba.tar.xz | |
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.
| -rw-r--r-- | galaxies.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |