소스 검색

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 );      
 }