Skip to content

Commit 5dceaf3

Browse files
authored
Fix jetpack crash (PR #3989)
1 parent 1aaf46c commit 5dceaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/game_sa/CBuildingsPoolSA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ inline bool CBuildingsPoolSA::AddBuildingToPool(CClientBuilding* pClientBuilding
5151

5252
CClientEntity* CBuildingsPoolSA::GetClientBuilding(CBuildingSAInterface* pGameInterface) const noexcept
5353
{
54-
std::uint32_t poolIndex = (*m_ppBuildingPoolInterface)->GetObjectIndex(pGameInterface);
54+
std::uint32_t poolIndex = (*m_ppBuildingPoolInterface)->GetObjectIndexSafe(pGameInterface);
5555

5656
if (poolIndex == static_cast<std::uint32_t>(-1))
5757
return nullptr;

0 commit comments

Comments
 (0)