aboutsummaryrefslogtreecommitdiff
path: root/cube.c
diff options
context:
space:
mode:
Diffstat (limited to 'cube.c')
-rw-r--r--cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cube.c b/cube.c
index 5940c8b..a0abf6d 100644
--- a/cube.c
+++ b/cube.c
@@ -559,7 +559,7 @@ char *new_game_seed(game_params *params)
/*
* 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(flags);