2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

chore: replace "new" keyword with correct memory allocation

This commit is contained in:
LJW-Dev
2026-03-22 21:04:11 +08:00
committed by Jan Laupetin
parent 096efd03c0
commit e515ce8588
2 changed files with 3 additions and 3 deletions
@@ -158,8 +158,8 @@ namespace BSP
{
size_t modelCount = bsp->gfxWorld.xmodels.size();
gfxWorld->dpvs.smodelCount = modelCount;
gfxWorld->dpvs.smodelInsts = new GfxStaticModelInst[modelCount];
gfxWorld->dpvs.smodelDrawInsts = new GfxStaticModelDrawInst[modelCount];
gfxWorld->dpvs.smodelInsts = m_memory.Alloc<GfxStaticModelInst>(modelCount);
gfxWorld->dpvs.smodelDrawInsts = m_memory.Alloc<GfxStaticModelDrawInst>(modelCount);
for (size_t modelIdx = 0; modelIdx < modelCount; modelIdx++)
{