mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Checks for emptyString in preload
Sound asset out for emptyString
This commit is contained in:
parent
4429de59b0
commit
76addc52eb
6 changed files with 44 additions and 11 deletions
|
|
@ -235,6 +235,8 @@ public: \
|
|||
m##name = NULL;\
|
||||
}\
|
||||
\
|
||||
if(get##name() == StringTable->EmptyString())\
|
||||
return true;\
|
||||
if (m##name##Asset.notNull() && m##name##Asset->getStatus() != SoundAsset::Ok)\
|
||||
{\
|
||||
Con::errorf("%s(%s)::_set%s() - sound asset failure\"%s\" due to [%s]", macroText(className), getName(), macroText(name), _in, SoundAsset::getAssetErrstrn(m##name##Asset->getStatus()).c_str());\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue