Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Dec 25, 2023
1 parent a27cbc7 commit d8028f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Client/game_sa/CFileLoaderSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Client/game_sa/CFileLoaderSA.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CFileLoaderSA
CFileLoaderSA();
~CFileLoaderSA();

CEntitySAInterface* LoadFileObjectInstance(SFileObjectInstance*);
CEntitySAInterface* LoadObjectInstance(SFileObjectInstance*);

static void StaticSetHooks();
};
Expand Down
2 changes: 1 addition & 1 deletion Client/game_sa/CPoolsSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ CBuilding* CPoolsSA::AddBuilding(CClientBuilding* pClientBuilding, uint16_t mode
instance.rotation.fW = -instance.rotation.fW;

CFileLoaderSA loader{};
auto pBuilding = static_cast<CBuildingSAInterface*>(loader.LoadFileObjectInstance(&instance));
auto pBuilding = static_cast<CBuildingSAInterface*>(loader.LoadObjectInstance(&instance));

// Disable lod and ipl
pBuilding->m_pLod = nullptr;
Expand Down

0 comments on commit d8028f3

Please sign in to comment.