From 77515f04e0cbb23029563017b47def5f2b9d0e4a Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Tue, 21 Jan 2020 09:47:24 +0200 Subject: ConstructMloClumps --- src/modelinfo/ModelInfo.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/modelinfo/ModelInfo.cpp') diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp index fdde699b..c41320e2 100644 --- a/src/modelinfo/ModelInfo.cpp +++ b/src/modelinfo/ModelInfo.cpp @@ -121,7 +121,7 @@ CModelInfo::AddMloModel(int id) CMloModelInfo *modelinfo; modelinfo = CModelInfo::ms_mloModelStore.alloc(); CModelInfo::ms_modelInfoPtrs[id] = modelinfo; - modelinfo->m_clump = 0; + modelinfo->m_clump = nil; modelinfo->firstInstance = 0; modelinfo->lastInstance = 0; return modelinfo; @@ -218,13 +218,19 @@ CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level) } } - CStore* CModelInfo::GetMloInstanceStore() { return &CModelInfo::ms_mloInstanceStore; } +void +CModelInfo::ConstructMloClumps() +{ + for (int i = 0; i < ms_mloModelStore.allocPtr; i++) + ms_mloModelStore.store[i].ConstructClump(); +} + STARTPATCHES InjectHook(0x50B310, CModelInfo::Initialise, PATCH_JUMP); InjectHook(0x50B5B0, CModelInfo::ShutDown, PATCH_JUMP); -- cgit v1.2.3