diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-23 02:14:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-23 02:14:30 +0300 |
commit | 6a65a4cf5b6b10839254c0c5846ec2dbfea882f8 (patch) | |
tree | cdf1dcc071ab18575defff569d33f3cbc8be0348 /src/effectmanager.cpp | |
parent | 1a5f8957c707625efbcf36722b057d5eda5a21bb (diff) | |
download | mv-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.gz mv-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.bz2 mv-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.xz mv-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.zip |
Allow delete untracker being particle effects.
This fix some possible memory leaks.
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r-- | src/effectmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |