aboutsummaryrefslogtreecommitdiff
path: root/inertia.c
diff options
context:
space:
mode:
Diffstat (limited to 'inertia.c')
-rw-r--r--inertia.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/inertia.c b/inertia.c
index 95bdcc8..b490e04 100644
--- a/inertia.c
+++ b/inertia.c
@@ -875,10 +875,9 @@ static void game_set_size(drawing *dr, game_drawstate *ds,
{
ds->tilesize = tilesize;
+ assert(!ds->player_background); /* set_size is never called twice */
assert(!ds->player_bg_saved);
- if (ds->player_background)
- blitter_free(dr, ds->player_background);
ds->player_background = blitter_new(dr, TILESIZE, TILESIZE);
}