mirror of
				https://github.com/Laupetin/OpenAssetTools.git
				synced 2025-10-31 02:26:59 +00:00 
			
		
		
		
	fix: do not reallocate assets for dynamic asset pool
This commit is contained in:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user