aboutsummaryrefslogtreecommitdiff
path: root/pegs.c
diff options
context:
space:
mode:
Diffstat (limited to 'pegs.c')
-rw-r--r--pegs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pegs.c b/pegs.c
index 427633a..e4549db 100644
--- a/pegs.c
+++ b/pegs.c
@@ -936,8 +936,7 @@ static void game_set_size(drawing *dr, game_drawstate *ds,
assert(TILESIZE > 0);
- if (ds->drag_background)
- blitter_free(dr, ds->drag_background);
+ assert(!ds->drag_background); /* set_size is never called twice */
ds->drag_background = blitter_new(dr, TILESIZE, TILESIZE);
}