From effe771274674bb011e212b08616da8c9e01cfa0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 May 2016 21:57:59 +0300 Subject: Remove wrong condition. --- src/particle/particle.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/particle/particle.cpp') diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp index 728433ae9..4d852a78d 100644 --- a/src/particle/particle.cpp +++ b/src/particle/particle.cpp @@ -240,14 +240,10 @@ bool Particle::update() restrict2 if (mLifetimeLeft == 0) { mAlive = AliveStatus::DEAD_TIMEOUT; - if (mChildParticles.empty()) { - if (mAlive != AliveStatus::ALIVE && - mAutoDelete) - { + if (mAutoDelete) return false; - } return true; } } -- cgit v1.2.3-70-g09d2