shithub: puzzles

Download patch

ref: 5e28f1a9719127373535d8d3104e3ccf4a32d34f
parent: cc6092ce796789068864c7fd91e8dc2e330b95ac
author: Jacob Nevins <jacobn@chiark.greenend.org.uk>
date: Sat Oct 22 14:18:21 EDT 2005

Fix segfault in Tents' printing.

[originally from svn r6422]

--- a/tents.c
+++ b/tents.c
@@ -1976,7 +1976,7 @@
              * 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))