aboutsummaryrefslogtreecommitdiff
path: root/tents.c
diff options
context:
space:
mode:
Diffstat (limited to 'tents.c')
-rw-r--r--tents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tents.c b/tents.c
index bc07b4b..bab0de7 100644
--- a/tents.c
+++ b/tents.c
@@ -1803,7 +1803,8 @@ static void game_compute_size(game_params *params, int tilesize,
int *x, int *y)
{
/* fool the macros */
- struct dummy { int tilesize; } dummy = { tilesize }, *ds = &dummy;
+ struct dummy { int tilesize; } dummy, *ds = &dummy;
+ dummy.tilesize = tilesize;
*x = TLBORDER + BRBORDER + TILESIZE * params->w;
*y = TLBORDER + BRBORDER + TILESIZE * params->h;