mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 11:44:10 +00:00
start using CMemoryHeap
This commit is contained in:
parent
4ddc356341
commit
d857758c16
22 changed files with 652 additions and 238 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue