1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Allow multiple asset pack overrides

This commit is contained in:
Ted John
2022-10-01 12:07:42 +01:00
parent b264a73247
commit b2d5e356ab
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ void AssetPackManager::LoadSamplesForObject(std::string_view id, AudioSampleTabl
{
if (assetPack->IsEnabled() && assetPack->ContainsObject(id))
{
return assetPack->LoadSamplesForObject(id, objectTable);
assetPack->LoadSamplesForObject(id, objectTable);
}
}
}

View File

@@ -21,7 +21,7 @@ using namespace OpenRCT2::Audio;
void AudioObject::Load()
{
// Start with base images
// Start with base samples
_loadedSampleTable.LoadFrom(_sampleTable, 0, _sampleTable.GetCount());
// Override samples from asset packs