Browse Source

Merge pull request #834 from Azaezel/Preview4_0

soundAsset profile and description getter fixes
Brian Roberts 3 năm trước cách đây
mục cha
commit
c8db2ea955
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      Engine/source/T3D/assets/SoundAsset.h

+ 4 - 4
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); }