mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1484 from Azaezel/alpha41/sfxShanked
sfxemitter destructor
This commit is contained in:
commit
dceaf91f5d
|
|
@ -233,7 +233,7 @@ SFXEmitter::SFXEmitter()
|
|||
|
||||
SFXEmitter::~SFXEmitter()
|
||||
{
|
||||
if (mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
|
||||
if (mLocalProfile && mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
|
||||
mLocalProfile->onRemove();
|
||||
|
||||
SFX_DELETE( mSource );
|
||||
|
|
|
|||
Loading…
Reference in a new issue