Merge pull request #834 from Azaezel/Preview4_0

soundAsset profile and description getter fixes
This commit is contained in:
Brian Roberts 2022-07-27 16:29:06 -05:00 committed by GitHub
commit c8db2ea955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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