diff options
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index b7071674..af54a4b5 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -360,11 +360,9 @@ Particle::~Particle() void Particle::clear() { - std::for_each(mChildEmitters.begin(), mChildEmitters.end(), - make_dtor(mChildEmitters)); + delete_all(mChildEmitters); mChildEmitters.clear(); - std::for_each(mChildParticles.begin(), mChildParticles.end(), - make_dtor(mChildParticles)); + delete_all(mChildParticles); mChildParticles.clear(); } |