mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Fix segfault in Tents' printing.
[originally from svn r6422]
This commit is contained in:
2
tents.c
2
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))
|
||||
|
Reference in New Issue
Block a user