diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-05 20:05:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-05 20:05:20 +0300 |
commit | bdbad5330716fde9952924190b60341d05a089d1 (patch) | |
tree | 6302e0c192dfe31320d9ea71f18aa82c965d2068 | |
parent | efaca0ed86f119a107bb9c0459f4334aa66d1e47 (diff) | |
download | manaplus-bdbad5330716fde9952924190b60341d05a089d1.tar.gz manaplus-bdbad5330716fde9952924190b60341d05a089d1.tar.bz2 manaplus-bdbad5330716fde9952924190b60341d05a089d1.tar.xz manaplus-bdbad5330716fde9952924190b60341d05a089d1.zip |
Fix memory leak in statuseffect.
-rw-r--r-- | src/statuseffect.cpp | 7 |
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) |