From 6a448cf118c264db2aa07e4a589d60c3ad4eb49f Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 18 Jun 2026 17:17:07 -0500 Subject: [PATCH] crashfix for SFXEmitter the last refactor broke spawning sfxemitters with blank entries. this will fix that, though we'll need to circle back and correct other issues, like looping override --- Engine/source/T3D/sfx/sfxEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/sfx/sfxEmitter.cpp b/Engine/source/T3D/sfx/sfxEmitter.cpp index 000d75e74..b77b67780 100644 --- a/Engine/source/T3D/sfx/sfxEmitter.cpp +++ b/Engine/source/T3D/sfx/sfxEmitter.cpp @@ -820,7 +820,7 @@ void SFXEmitter::_update() // is toggled on a local profile sound. It makes the // editor feel responsive and that things are working. if( gEditingMission && - (SoundAsset::getAssetErrCode(mSoundAsset) || !mSoundAsset->getSFXTrack()) && + (SoundAsset::getAssetErrCode(mSoundAsset) || (mSoundAsset.isValid() && !mSoundAsset->getSFXTrack())) && mPlayOnAdd && mDirty.test( IsLooping ) ) prevState = SFXStatusPlaying;