mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 05:20:31 +00:00
Fix: Null'ed pointer usage, possible access violation.
This fixes issue #700
This commit is contained in:
parent
feec36731e
commit
e442b87c0c
3 changed files with 3 additions and 14 deletions
|
|
@ -964,10 +964,7 @@ void Explosion::onRemove()
|
|||
mMainEmitter = NULL;
|
||||
}
|
||||
|
||||
if (getSceneManager() != NULL)
|
||||
getSceneManager()->removeObjectFromScene(this);
|
||||
if (getContainer() != NULL)
|
||||
getContainer()->removeObject(this);
|
||||
removeFromScene();
|
||||
|
||||
Parent::onRemove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue