mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Ensure zone music DBC enrichment runs at world load time
Call enrichFromDBC() again when loadOnlineWorld() sets cachedAssetManager, so enrichment is guaranteed even when the asset manager was null at renderer construction. enrichFromDBC() is idempotent (skips duplicate paths).
This commit is contained in:
parent
97192ab2a4
commit
a654dd5e99
1 changed files with 5 additions and 0 deletions
|
|
@ -5159,6 +5159,11 @@ bool Renderer::initializeRenderers(pipeline::AssetManager* assetManager, const s
|
|||
}
|
||||
|
||||
cachedAssetManager = assetManager;
|
||||
|
||||
// Enrich zone music from DBC if not already done (e.g. asset manager was null at init).
|
||||
if (zoneManager && assetManager) {
|
||||
zoneManager->enrichFromDBC(assetManager);
|
||||
}
|
||||
}
|
||||
|
||||
// Snap camera to ground
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue