boolean is<thing>valid chjecks for assets. tests wether it's non-empty and reporting zero flaws

This commit is contained in:
AzaezelX 2021-09-28 18:16:14 -05:00
parent 96891e5673
commit 776741770d
5 changed files with 16 additions and 9 deletions

View file

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