summaryrefslogtreecommitdiff
path: root/src/being/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/actor.cpp')
-rw-r--r--src/being/actor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/being/actor.cpp b/src/being/actor.cpp
index f32105682..62ab4fc83 100644
--- a/src/being/actor.cpp
+++ b/src/being/actor.cpp
@@ -35,7 +35,11 @@ Actor::Actor():
Actor::~Actor()
{
- setMap(nullptr);
+ if (mMap)
+ {
+ mMap->removeActor(mMapActor);
+ mMap = nullptr;
+ }
}
void Actor::setMap(Map *const map)