mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
sfxEmitter destrctor safties
be more paranoid
This commit is contained in:
parent
e557f5962b
commit
9fe13d6a32
|
|
@ -233,7 +233,7 @@ SFXEmitter::SFXEmitter()
|
|||
|
||||
SFXEmitter::~SFXEmitter()
|
||||
{
|
||||
if(mLocalProfile != NULL)
|
||||
if (mLocalProfile && mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
|
||||
mLocalProfile->onRemove();
|
||||
|
||||
SFX_DELETE( mSource );
|
||||
|
|
|
|||
Loading…
Reference in a new issue