shithub: puzzles

Download patch

ref: 6c3f422dde51d521ac8cd21fd4bd98df70217425
parent: 2534ec5d695a363775f73d62f153f946da01fa69
author: Simon Tatham <anakin@pobox.com>
date: Tue May 17 06:59:47 EDT 2005

Cube's dup_game() function was missing a field. Oops.

[originally from svn r5789]

--- a/cube.c
+++ b/cube.c
@@ -957,6 +957,7 @@
     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));