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:
Titus Tscharntke 2011-05-01 21:46:04 +00:00
parent 9ce83ed21b
commit 7863212a94
1 changed files with 1 additions and 1 deletions

View File

@ -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);