Browse Source

Merge pull request #1484 from Azaezel/alpha41/sfxShanked

sfxemitter destructor
Brian Roberts 4 months ago
parent
commit
dceaf91f5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/T3D/sfx/sfxEmitter.cpp

+ 1 - 1
Engine/source/T3D/sfx/sfxEmitter.cpp

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