aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-17 10:59:47 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-17 10:59:47 +0000
commit6c3f422dde51d521ac8cd21fd4bd98df70217425 (patch)
tree02118054c71c586c88af4be7a5f769ab0884e4a8
parent2534ec5d695a363775f73d62f153f946da01fa69 (diff)
downloadpuzzles-6c3f422dde51d521ac8cd21fd4bd98df70217425.zip
puzzles-6c3f422dde51d521ac8cd21fd4bd98df70217425.tar.gz
puzzles-6c3f422dde51d521ac8cd21fd4bd98df70217425.tar.bz2
puzzles-6c3f422dde51d521ac8cd21fd4bd98df70217425.tar.xz
Cube's dup_game() function was missing a field. Oops.
[originally from svn r5789]
-rw-r--r--cube.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cube.c b/cube.c
index becf5db..12e3ece 100644
--- 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));