diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game.cpp | 4 | ||||
-rw-r--r-- | src/game/game.hpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 35cb90c..35d66ec 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -9,6 +9,10 @@ entity_t::entity_t(game::state_t *game_, int type_) : world::entity_t(type_) game = game_; } +entity_t::~entity_t(void) +{ +} + void entity_t::destroy(void) { unlink(); diff --git a/src/game/game.hpp b/src/game/game.hpp index b9a426b..04380be 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -62,7 +62,7 @@ namespace game { rectf_t size, render_size; entity_t(game::state_t *game, int type_); - ~entity_t(void) {}; + virtual ~entity_t(void) = 0; void destroy(void); void place(world::world_t *world); |