summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index b068270b..ad60dc2f 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -83,7 +83,6 @@ Being::~Being()
{
std::for_each(mSprites.begin(), mSprites.end(), make_dtor(mSprites));
clearPath();
- setMap(NULL);
for ( std::list<Particle *>::iterator i = mChildParticleEffects.begin();
i != mChildParticleEffects.end();
@@ -92,6 +91,8 @@ Being::~Being()
(*i)->kill();
}
+ setMap(NULL);
+
instances--;
if (instances == 0)