aboutsummaryrefslogtreecommitdiff
path: root/unequal.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2010-01-18 21:23:27 +0000
committerSimon Tatham <anakin@pobox.com>2010-01-18 21:23:27 +0000
commitf55dc67f4305d9e4cfaa89e5c7ad34da6c75d5a4 (patch)
tree40fd745255027fc28af05b6f59bd35c6e196f5eb /unequal.c
parent9f96c12e9f56ab504ffbf11fda68b8f469da63fa (diff)
downloadpuzzles-f55dc67f4305d9e4cfaa89e5c7ad34da6c75d5a4.zip
puzzles-f55dc67f4305d9e4cfaa89e5c7ad34da6c75d5a4.tar.gz
puzzles-f55dc67f4305d9e4cfaa89e5c7ad34da6c75d5a4.tar.bz2
puzzles-f55dc67f4305d9e4cfaa89e5c7ad34da6c75d5a4.tar.xz
Fix from James H: the shared code between drawing and printing
should use state->adjacent rather than ds->adjacent, because the latter won't be initialised in printing mode. [originally from svn r8852]
Diffstat (limited to 'unequal.c')
-rw-r--r--unequal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unequal.c b/unequal.c
index 7ea0349..57d8afc 100644
--- a/unequal.c
+++ b/unequal.c
@@ -1902,7 +1902,7 @@ static void game_print(drawing *dr, game_state *state, int tilesize)
FONT_VARIABLE, TILE_SIZE/2, ALIGN_VCENTRE | ALIGN_HCENTRE,
ink, str);
- if (ds->adjacent)
+ if (state->adjacent)
draw_adjs(dr, ds, ox, oy, GRID(state, flags, x, y), ink);
else
draw_gts(dr, ds, ox, oy, GRID(state, flags, x, y), ink);