Cube's dup_game() function was missing a field. Oops.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 17 May 2005 10:59:47 +0000 (10:59 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 17 May 2005 10:59:47 +0000 (10:59 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5789 cda61777-01e9-0310-a592-d414129be87e

cube.c

diff --git a/cube.c b/cube.c
index becf5db..12e3ece 100644 (file)
--- a/cube.c
+++ b/cube.c
@@ -957,6 +957,7 @@ static game_state *dup_game(game_state *state)
     memcpy(ret->facecolours, state->facecolours,
            ret->solid->nfaces * sizeof(int));
     ret->nsquares = state->nsquares;
+    ret->current = state->current;
     ret->squares = snewn(ret->nsquares, struct grid_square);
     memcpy(ret->squares, state->squares,
            ret->nsquares * sizeof(struct grid_square));