Pārlūkot izejas kodu

Merge pull request #926 from Azaezel/alpha402/soundSafety

if we have no description, the sounds is never 3d
Brian Roberts 2 gadi atpakaļ
vecāks
revīzija
d021c5ddfa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 );      
 }