2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-02 09:11:49 +00:00

fix: do not reallocate assets for dynamic asset pool

This commit is contained in:
Jan
2024-12-31 12:39:09 +01:00
parent 306ffb730e
commit 80c4a9a2ae
2 changed files with 5 additions and 10 deletions

View File

@ -6,8 +6,12 @@ Zone::Zone(std::string name, const zone_priority_t priority, IGame* game)
m_name(std::move(name)),
m_priority(priority),
m_language(GameLanguage::LANGUAGE_NONE),
m_game(game)
m_game(game),
m_pools(ZoneAssetPools::CreateForGame(game->GetId(), this, priority))
{
const auto assetTypeCount = m_pools->GetAssetTypeCount();
for (auto i = 0; i < assetTypeCount; i++)
m_pools->InitPoolDynamic(i);
}
Zone::~Zone()