sfxEmitter destrctor safties

be more paranoid
This commit is contained in:
AzaezelX 2025-05-25 21:56:56 -05:00
parent e557f5962b
commit 9fe13d6a32

View file

@ -233,7 +233,7 @@ SFXEmitter::SFXEmitter()
SFXEmitter::~SFXEmitter()
{
if(mLocalProfile != NULL)
if (mLocalProfile && mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
mLocalProfile->onRemove();
SFX_DELETE( mSource );