Explorar o código

if we have no description, the sounds is never 3d

AzaezelX %!s(int64=2) %!d(string=hai) anos
pai
achega
ab98909f1e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );      
 }