mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
refactor: get rid of global game variables
This commit is contained in:
@ -39,7 +39,7 @@ GameId ZoneCreator::GetGameId() const
|
||||
|
||||
std::unique_ptr<Zone> ZoneCreator::CreateZoneForDefinition(ZoneCreationContext& context) const
|
||||
{
|
||||
auto zone = std::make_unique<Zone>(context.m_definition->m_name, 0, &g_GameIW5);
|
||||
auto zone = std::make_unique<Zone>(context.m_definition->m_name, 0, IGame::GetGameById(GameId::IW5));
|
||||
CreateZoneAssetPools(zone.get());
|
||||
|
||||
for (const auto& assetEntry : context.m_definition->m_assets)
|
||||
|
Reference in New Issue
Block a user