diff --git a/Client/game_sa/CFileLoaderSA.cpp b/Client/game_sa/CFileLoaderSA.cpp index c235479a22..42a19bb02d 100644 --- a/Client/game_sa/CFileLoaderSA.cpp +++ b/Client/game_sa/CFileLoaderSA.cpp @@ -28,7 +28,7 @@ void CFileLoaderSA::StaticSetHooks() HookInstall(0x538690, (DWORD)CFileLoader_LoadObjectInstance, 5); } -CEntitySAInterface* CFileLoaderSA::LoadFileObjectInstance(SFileObjectInstance* obj) +CEntitySAInterface* CFileLoaderSA::LoadObjectInstance(SFileObjectInstance* obj) { return ((CEntitySAInterface * (__cdecl*)(SFileObjectInstance*))0x538090)(obj); } diff --git a/Client/game_sa/CFileLoaderSA.h b/Client/game_sa/CFileLoaderSA.h index 4fe983cc51..9860eeecff 100644 --- a/Client/game_sa/CFileLoaderSA.h +++ b/Client/game_sa/CFileLoaderSA.h @@ -29,7 +29,7 @@ class CFileLoaderSA CFileLoaderSA(); ~CFileLoaderSA(); - CEntitySAInterface* LoadFileObjectInstance(SFileObjectInstance*); + CEntitySAInterface* LoadObjectInstance(SFileObjectInstance*); static void StaticSetHooks(); }; diff --git a/Client/game_sa/CPoolsSA.cpp b/Client/game_sa/CPoolsSA.cpp index 5efe19f7c1..3bc706eb3a 100644 --- a/Client/game_sa/CPoolsSA.cpp +++ b/Client/game_sa/CPoolsSA.cpp @@ -375,7 +375,7 @@ CBuilding* CPoolsSA::AddBuilding(CClientBuilding* pClientBuilding, uint16_t mode instance.rotation.fW = -instance.rotation.fW; CFileLoaderSA loader{}; - auto pBuilding = static_cast(loader.LoadFileObjectInstance(&instance)); + auto pBuilding = static_cast(loader.LoadObjectInstance(&instance)); // Disable lod and ipl pBuilding->m_pLod = nullptr;