- tighten up code.. ensure pointers set to null after delete, etc

This commit is contained in:
Mark Vejvoda
2013-02-01 17:25:49 +00:00
parent bff9b1b3bc
commit 8dc637527a
19 changed files with 54 additions and 13 deletions

View File

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