mirror of
https://github.com/halpz/re3.git
synced 2025-07-23 07:59:45 +00:00
start using CMemoryHeap
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
#include "Bones.h"
|
||||
#include "Debug.h"
|
||||
#include "Renderer.h"
|
||||
#include "MemoryHeap.h"
|
||||
|
||||
int gBuildings;
|
||||
|
||||
@ -274,7 +275,11 @@ CEntity::CreateRwObject(void)
|
||||
CBaseModelInfo *mi;
|
||||
|
||||
mi = CModelInfo::GetModelInfo(m_modelIndex);
|
||||
|
||||
PUSH_MEMID(MEMID_WORLD);
|
||||
m_rwObject = mi->CreateInstance();
|
||||
POP_MEMID();
|
||||
|
||||
if(m_rwObject){
|
||||
if(IsBuilding())
|
||||
gBuildings++;
|
||||
|
Reference in New Issue
Block a user