aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2005-10-22 18:18:21 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2005-10-22 18:18:21 +0000
commit5e28f1a9719127373535d8d3104e3ccf4a32d34f (patch)
tree350891bae2cecbcef715e95fbbf151140087a663
parentcc6092ce796789068864c7fd91e8dc2e330b95ac (diff)
downloadpuzzles-5e28f1a9719127373535d8d3104e3ccf4a32d34f.zip
puzzles-5e28f1a9719127373535d8d3104e3ccf4a32d34f.tar.gz
puzzles-5e28f1a9719127373535d8d3104e3ccf4a32d34f.tar.bz2
puzzles-5e28f1a9719127373535d8d3104e3ccf4a32d34f.tar.xz
Fix segfault in Tents' printing.
[originally from svn r6422]
-rw-r--r--tents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tents.c b/tents.c
index 973c770..afed169 100644
--- a/tents.c
+++ b/tents.c
@@ -1976,7 +1976,7 @@ static void int_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate,
* marginally nicer not to have the drag effects
* flickering on and off disconcertingly.
*/
- if (ui->drag_button >= 0)
+ if (ui && ui->drag_button >= 0)
v = drag_xform(ui, x, y, v);
if (flashing && (v == TREE || v == TENT))