chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc6092c
)
Fix segfault in Tents' printing.
author
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Sat, 22 Oct 2005 18:18:21 +0000
(18:18 +0000)
committer
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Sat, 22 Oct 2005 18:18:21 +0000
(18:18 +0000)
[originally from svn r6422]
tents.c
patch
|
blob
|
history
diff --git
a/tents.c
b/tents.c
index 973c7700d383dc59eac5c305783be2c027b26a1a..afed169ca4bd3f48d9519e6b647c5e64a1477801 100644
(file)
--- 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))