mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
refactor: remove MemoryManager create method usages
This commit is contained in:
@ -9,6 +9,6 @@ class TestMemoryManager : public MemoryManager
|
||||
public:
|
||||
[[nodiscard]] size_t GetAllocationCount() const
|
||||
{
|
||||
return m_allocations.size() + m_destructible.size();
|
||||
return m_allocations.size();
|
||||
}
|
||||
};
|
||||
|
@ -51,7 +51,7 @@ namespace test::game::iw4::menu::parsing::it
|
||||
|
||||
Material* AddMaterial(const std::string& name)
|
||||
{
|
||||
auto* material = m_zone.GetMemory()->Create<Material>();
|
||||
auto* material = m_zone.GetMemory()->Alloc<Material>();
|
||||
material->info.name = m_zone.GetMemory()->Dup(name.c_str());
|
||||
|
||||
m_context.AddAsset<AssetMaterial>(name, material);
|
||||
|
Reference in New Issue
Block a user