mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Merge pull request #1479 from Azaezel/alpha41/sfxEmitterCleanup
clean up sfxemitter
This commit is contained in:
commit
3c85ff2c8e
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ SFXEmitter::SFXEmitter()
|
|||
|
||||
SFXEmitter::~SFXEmitter()
|
||||
{
|
||||
if(mLocalProfile != NULL)
|
||||
if (mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
|
||||
mLocalProfile->onRemove();
|
||||
|
||||
SFX_DELETE( mSource );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue