[Isnd_alias_list_t] Fix missing sound

This commit is contained in:
momo5502 2017-02-13 22:24:02 +01:00
parent 1604cf76e3
commit 924e42ef33

View File

@ -5,8 +5,10 @@ namespace Assets
void Isnd_alias_list_t::load(Game::XAssetHeader* header, std::string name, Components::ZoneBuilder::Zone* builder) void Isnd_alias_list_t::load(Game::XAssetHeader* header, std::string name, Components::ZoneBuilder::Zone* builder)
{ {
Components::FileSystem::File aliasFile(Utils::String::VA("sounds/%s", name.data())); Components::FileSystem::File aliasFile(Utils::String::VA("sounds/%s", name.data()));
if (!aliasFile.exists()) { if (!aliasFile.exists())
{
header->sound = Components::AssetHandler::FindOriginalAsset(this->getType(), name.data()).sound; header->sound = Components::AssetHandler::FindOriginalAsset(this->getType(), name.data()).sound;
return;
} }
Game::snd_alias_list_t* aliasList = builder->getAllocator()->allocate<Game::snd_alias_list_t>(); Game::snd_alias_list_t* aliasList = builder->getAllocator()->allocate<Game::snd_alias_list_t>();