From f59c5f152faa945e955d9e6b70076578206ddfad Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Wed, 27 Jul 2022 16:28:07 -0500 Subject: [PATCH] soundAsset profile and description getter fixes --- Engine/source/T3D/assets/SoundAsset.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Engine/source/T3D/assets/SoundAsset.h b/Engine/source/T3D/assets/SoundAsset.h index 7185e3e7b..7722826d8 100644 --- a/Engine/source/T3D/assets/SoundAsset.h +++ b/Engine/source/T3D/assets/SoundAsset.h @@ -279,16 +279,16 @@ public: \ }\ SFXProfile* get##name##Profile()\ {\ - if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull())\ + if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull()){\ m##name##Profile = m##name##Asset->getSfxProfile();\ - return m##name##Profile;\ + return m##name##Profile;}\ return NULL;\ }\ SFXDescription* get##name##Description()\ {\ - if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull())\ + if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull()){\ m##name##Desc = m##name##Asset->getSfxDescription();\ - return m##name##Desc;\ + return m##name##Desc;}\ return NULL;\ }\ bool is##name##Valid() { return (get##name() != StringTable->EmptyString() && m##name##Asset->getStatus() == AssetBase::Ok); }