Merge pull request #926 from Azaezel/alpha402/soundSafety

if we have no description, the sounds is never 3d
This commit is contained in:
Brian Roberts 2022-11-28 00:10:51 -06:00 committed by GitHub
commit d021c5ddfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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