Skip to content

Commit

Permalink
static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Jan 23, 2025
1 parent e708fc7 commit a11d88c
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 @@ -52,7 +52,7 @@ CClientEntity* CBuildingsPoolSA::GetClientBuilding(CBuildingSAInterface* pGameIn
{
std::uint32_t poolIndex = (*m_ppBuildingPoolInterface)->GetObjectIndex(pGameInterface);

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

return m_buildingPool.entities[poolIndex].pClientEntity;
Expand Down

0 comments on commit a11d88c

Please sign in to comment.