fixes a memory problem with very small emission rates which might happen when a particle system has no more living particle.
This commit is contained in:
parent
9ce83ed21b
commit
7863212a94
|
@ -1016,7 +1016,7 @@ void ParticleManager::update(int renderFps){
|
|||
}
|
||||
if(showParticle == true){
|
||||
ps->update();
|
||||
if(ps->isEmpty()){
|
||||
if(ps->isEmpty() && ps->getState() == ParticleSystem::sFade){
|
||||
//delete ps;
|
||||
//*it= NULL;
|
||||
cleanupParticleSystemsList.push_back(ps);
|
||||
|
|
Loading…
Reference in New Issue