From bdbad5330716fde9952924190b60341d05a089d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Jun 2011 20:05:20 +0300 Subject: Fix memory leak in statuseffect. --- src/statuseffect.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/statuseffect.cpp') 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 map) -- cgit v1.2.3-60-g2f50