chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2534ec5
)
Cube's dup_game() function was missing a field. Oops.
author
Simon Tatham
<anakin@pobox.com>
Tue, 17 May 2005 10:59:47 +0000
(10:59 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 17 May 2005 10:59:47 +0000
(10:59 +0000)
[originally from svn r5789]
cube.c
patch
|
blob
|
history
diff --git
a/cube.c
b/cube.c
index becf5dbe5e2487c8cf285a6ff6914cab068f5160..12e3eced8d224415c255920a8b9a5fd4ce59827a 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));