summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 5fbcfaea..abc7946f 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -44,6 +44,11 @@ Monster::Monster(Uint16 id, Uint16 job, Map *map):
AnimatedSprite::load("graphics/sprites/" + filename);
}
+Monster::~Monster()
+{
+ if (mMap) mMap->freeTile(mX / 32, mY / 32, getBlockType());
+}
+
Being::Type
Monster::getType() const
{