Ver código fonte

Merge pull request #1484 from Azaezel/alpha41/sfxShanked

sfxemitter destructor
Brian Roberts 4 meses atrás
pai
commit
dceaf91f5d
1 arquivos alterados com 1 adições e 1 exclusões
  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()
 {
-   if (mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
+   if (mLocalProfile && mLocalProfile->getRefCount() && !mLocalProfile->isDeleted())
       mLocalProfile->onRemove();
 
    SFX_DELETE( mSource );