Allow multiple asset pack overrides

This commit is contained in:
Ted John committed 2022-10-01 13:06:55 +01:00
1 parent b264a73247
commit b2d5e356ab
2 files changed
+2 -2

No files matched your search

+1 -1
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);
}
}
}
+1 -1
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