Fix segfault in Tents' printing.

[originally from svn r6422]
This commit is contained in:
Jacob Nevins
2005-10-22 18:18:21 +00:00
parent cc6092ce79
commit 5e28f1a971

View File

@ -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))