From 6a65a4cf5b6b10839254c0c5846ec2dbfea882f8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Jul 2016 02:14:30 +0300 Subject: Allow delete untracker being particle effects. This fix some possible memory leaks. --- src/effectmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/effectmanager.cpp') diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index feec7ae98..7ed51092d 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -134,7 +134,7 @@ bool EffectManager::trigger(const int id, { Particle *const selfFX = particleEngine->addEffect( effect.gfx, 0, 0, rotation); - being->controlParticle(selfFX); + being->controlAutoParticle(selfFX); } if (!effect.sfx.empty()) soundManager.playSfx(effect.sfx); @@ -165,7 +165,7 @@ Particle *EffectManager::triggerReturn(const int id, { rValue = particleEngine->addEffect( effect.gfx, 0, 0, rotation); - being->controlParticle(rValue); + being->controlCustomParticle(rValue); } if (!effect.sfx.empty()) soundManager.playSfx(effect.sfx); -- cgit v1.2.3-60-g2f50