From df2d513ba368f24cbec3ece3ff0084093a568e86 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Fri, 28 Dec 2007 18:36:58 +0000 Subject: Added the possibility to assign particle effects to monsters in the monster database. Added flame particle effect to fire goblin as a proof of concept. --- src/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/being.cpp') 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::iterator i = mChildParticleEffects.begin(); i != mChildParticleEffects.end(); @@ -92,6 +91,8 @@ Being::~Being() (*i)->kill(); } + setMap(NULL); + instances--; if (instances == 0) -- cgit v1.2.3-60-g2f50