mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
standardize soundasset preloading for datablocks
This commit is contained in:
parent
6c8dfdbe4c
commit
15f7f04bee
13 changed files with 46 additions and 58 deletions
|
|
@ -348,9 +348,10 @@ bool WheeledVehicleData::preload(bool server, String &errorStr)
|
|||
if (!server) {
|
||||
for (S32 i = 0; i < MaxSounds; i++)
|
||||
{
|
||||
if (getWheeledVehicleSounds(i) != StringTable->EmptyString())
|
||||
if (getWheeledVehicleSounds(i) != StringTable->EmptyString() && !isWheeledVehicleSoundsValid(i))
|
||||
{
|
||||
_setWheeledVehicleSounds(getWheeledVehicleSounds(i), i);
|
||||
Con::errorf(ConsoleLogEntry::General, "HoverVehicleData::preload: Invalid WheeledVehicleSounds asset.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue