diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index 2f1fc648..c218ad01 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -44,6 +44,11 @@ Player::Player(int id, int job, Map *map): { } +Player::~Player() +{ + if (mMap) mMap->freeTile(mX / 32, mY / 32, getBlockType()); +} + Being::Type Player::getType() const { |