Merge pull request #1484 from Azaezel/alpha41/sfxShanked

sfxemitter destructor
This commit is contained in:
Brian Roberts 2025-05-25 22:42:09 -05:00 committed by GitHub
commit dceaf91f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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