refactor: remove MemoryManager create method usages

This commit is contained in:
Jan
2025-01-13 22:03:20 +00:00
parent 62f1ac41c5
commit 4c09e94220
11 changed files with 13 additions and 89 deletions

View File

@ -63,7 +63,7 @@ namespace
menuLoadQueue.pop_front();
}
auto* menuListAsset = m_memory.Create<MenuList>();
auto* menuListAsset = m_memory.Alloc<MenuList>();
menuListAsset->name = m_memory.Dup(assetName.c_str());
registration.SetAsset(menuListAsset);

View File

@ -15,8 +15,7 @@ void MenuConversionZoneState::Inject(ZoneAssetCreationInjection& inject)
auto* memory = inject.m_zone.GetMemory();
m_zone = &inject.m_zone;
m_supporting_data = memory->Create<ExpressionSupportingData>();
memset(m_supporting_data, 0, sizeof(ExpressionSupportingData));
m_supporting_data = memory->Alloc<ExpressionSupportingData>();
}
Statement_s* MenuConversionZoneState::FindFunction(const std::string& functionName)