mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01: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:
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…
x
Reference in New Issue
Block a user