summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-05 20:05:20 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-05 20:05:20 +0300
commitbdbad5330716fde9952924190b60341d05a089d1 (patch)
tree6302e0c192dfe31320d9ea71f18aa82c965d2068
parentefaca0ed86f119a107bb9c0459f4334aa66d1e47 (diff)
downloadManaVerse-bdbad5330716fde9952924190b60341d05a089d1.tar.gz
ManaVerse-bdbad5330716fde9952924190b60341d05a089d1.tar.bz2
ManaVerse-bdbad5330716fde9952924190b60341d05a089d1.tar.xz
ManaVerse-bdbad5330716fde9952924190b60341d05a089d1.zip
Fix memory leak in statuseffect.
-rw-r--r--src/statuseffect.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index d875a2f57..27e351a45 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -43,10 +43,12 @@ bool StatusEffect::mLoaded = false;
StatusEffect::StatusEffect() :
mPersistentParticleEffect(false)
-{}
+{
+}
StatusEffect::~StatusEffect()
-{}
+{
+}
void StatusEffect::playSFX()
{
@@ -182,6 +184,7 @@ void StatusEffect::load()
(*the_map)[0][index] = endEffect;
}
}
+ mLoaded = true;
}
void unloadMap(std::map<int, StatusEffect *> map)