mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
clean up sfxemitter
This commit is contained in:
parent
73af7f6c3e
commit
0c67f3642b
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ SFXEmitter::SFXEmitter()
|
||||||
|
|
||||||
SFXEmitter::~SFXEmitter()
|
SFXEmitter::~SFXEmitter()
|
||||||
{
|
{
|
||||||
if(mLocalProfile != NULL)
|
if (mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
|
||||||
mLocalProfile->onRemove();
|
mLocalProfile->onRemove();
|
||||||
|
|
||||||
SFX_DELETE( mSource );
|
SFX_DELETE( mSource );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue