mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 19:51:44 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user