Procházet zdrojové kódy

Merge pull request #926 from Azaezel/alpha402/soundSafety

if we have no description, the sounds is never 3d
Brian Roberts před 2 roky
rodič
revize
d021c5ddfa
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Engine/source/sfx/sfxSound.cpp

+ 1 - 1
Engine/source/sfx/sfxSound.cpp

@@ -554,7 +554,7 @@ void SFXSound::setTransform( const MatrixF& transform )
 {
    Parent::setTransform( transform );
 
-   if( mVoice && is3d() )
+   if( mVoice && mDescription && is3d() )
       mVoice->setTransform( mTransform );      
 }