diff --git a/src/gfx.c b/src/gfx.c index 8aa30c3..fb4116b 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -959,6 +959,8 @@ gfx_free_tileset () SDL_FreeSurface (gfx.bomb.image); if (gfx.fire.image != NULL) SDL_FreeSurface (gfx.fire.image); + if (gfx.powerup.image != NULL) + SDL_FreeSurface (gfx.powerup.image); gfx.bomb.image = NULL; gfx.fire.image = NULL; }; diff --git a/src/gfx.h b/src/gfx.h index 508ad11..186ca17 100644 --- a/src/gfx.h +++ b/src/gfx.h @@ -46,6 +46,7 @@ struct __gfx { short int postab[256]; // table of points where we need to go to. _gfxani field[FT_max]; // the field animations + _gfxani powerup; // powerup field animation _gfxani fire; // fire (explostion) _gfxani bomb; // bomb animation _gfxani ill; // sick animation above the player