diff options
author | aap <aap@papnet.eu> | 2020-11-26 16:47:19 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-11-26 17:39:59 +0100 |
commit | d857758c167ee06840ec806524191e95ff37f98a (patch) | |
tree | fcfdf828156ae6e394ba768756629906f9d73eab /src/entities/Entity.cpp | |
parent | memory heap starting to work (diff) | |
download | re3-d857758c167ee06840ec806524191e95ff37f98a.tar re3-d857758c167ee06840ec806524191e95ff37f98a.tar.gz re3-d857758c167ee06840ec806524191e95ff37f98a.tar.bz2 re3-d857758c167ee06840ec806524191e95ff37f98a.tar.lz re3-d857758c167ee06840ec806524191e95ff37f98a.tar.xz re3-d857758c167ee06840ec806524191e95ff37f98a.tar.zst re3-d857758c167ee06840ec806524191e95ff37f98a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/Entity.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index 5e3204b2..476439fa 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -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++; |