mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 01:46:42 +02:00
- tighten up code.. ensure pointers set to null after delete, etc
This commit is contained in:
@@ -492,6 +492,7 @@ void ParticleSystem::fade(){
|
||||
state= sFade;
|
||||
if(particleObserver != NULL){
|
||||
particleObserver->update(this);
|
||||
particleObserver=NULL;
|
||||
}
|
||||
for(int i=getChildCount()-1; i>=0; i--)
|
||||
getChild(i)->fade();
|
||||
@@ -1539,6 +1540,7 @@ void ProjectileParticleSystem::update(){
|
||||
|
||||
if(particleObserver != NULL){
|
||||
particleObserver->update(this);
|
||||
particleObserver=NULL;
|
||||
}
|
||||
|
||||
if(nextParticleSystem != NULL){
|
||||
|
Reference in New Issue
Block a user