Skip to content

Commit

Permalink
Fix jetpack crash (PR #3989)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij authored Jan 30, 2025
1 parent 1aaf46c commit 5dceaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/game_sa/CBuildingsPoolSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ inline bool CBuildingsPoolSA::AddBuildingToPool(CClientBuilding* pClientBuilding

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

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

0 comments on commit 5dceaf3

Please sign in to comment.