Incorrect placing of the polyhedron sometimes left it on a blue

square. Oops.

[originally from svn r4175]
This commit is contained in:
Simon Tatham
2004-04-30 10:11:53 +00:00
parent a8c8237bd0
commit 3cc2c00e69

2
cube.c
View File

@ -559,7 +559,7 @@ char *new_game_seed(game_params *params)
/* /*
* Choose a non-blue square for the polyhedron. * Choose a non-blue square for the polyhedron.
*/ */
sprintf(p, ":%d", rand_upto(m)); sprintf(p, ":%d", data.gridptrs[0][rand_upto(m)]);
sfree(data.gridptrs[0]); sfree(data.gridptrs[0]);
sfree(flags); sfree(flags);