summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 16:34:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-17 16:36:44 +0300
commit2a363e453a8ed7e1d19682d889c3a62e9e71a7d2 (patch)
tree737d85d70cd071de84a32270aaa2dbbc4a4d9707 /src/being/actorsprite.cpp
parent977420e7831773a6bafaacfbfa277165451e7e43 (diff)
downloadmanaverse-2a363e453a8ed7e1d19682d889c3a62e9e71a7d2.tar.gz
manaverse-2a363e453a8ed7e1d19682d889c3a62e9e71a7d2.tar.bz2
manaverse-2a363e453a8ed7e1d19682d889c3a62e9e71a7d2.tar.xz
manaverse-2a363e453a8ed7e1d19682d889c3a62e9e71a7d2.zip
dont call setMap from destructors.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r--src/being/actorsprite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 162d5d661..7d4e7d10e 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -59,7 +59,8 @@ ActorSprite::ActorSprite(const int id) :
ActorSprite::~ActorSprite()
{
- setMap(nullptr);
+ mChildParticleEffects.clear();
+ mMustResetParticles = true;
mUsedTargetCursor = nullptr;