mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
boolean is<thing>valid chjecks for assets. tests wether it's non-empty and reporting zero flaws
This commit is contained in:
parent
96891e5673
commit
776741770d
5 changed files with 16 additions and 9 deletions
|
|
@ -296,7 +296,7 @@ bool LightningData::preload(bool server, String &errorStr)
|
|||
{
|
||||
for (S32 i = 0; i < MaxThunders; i++)
|
||||
{
|
||||
if (getThunderSound(i))
|
||||
if (isThunderSoundValid(i))
|
||||
{
|
||||
_setThunderSound(getThunderSound(i), i);
|
||||
if (!getThunderSoundProfile(i))
|
||||
|
|
@ -304,7 +304,7 @@ bool LightningData::preload(bool server, String &errorStr)
|
|||
}
|
||||
}
|
||||
|
||||
if(getStrikeSound() && !getStrikeSoundProfile())
|
||||
if(isStrikeSoundValid() && !getStrikeSoundProfile())
|
||||
Con::errorf(ConsoleLogEntry::General, "LightningData::preload: can't get sfxProfile from asset");
|
||||
|
||||
mNumStrikeTextures = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue