Преглед изворни кода

Merge pull request #926 from Azaezel/alpha402/soundSafety

if we have no description, the sounds is never 3d
Brian Roberts пре 2 година
родитељ
комит
d021c5ddfa
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );      
 }