Skip to content

Commit

Permalink
Use using
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Mar 3, 2024
1 parent ae496bb commit 1d9d416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/game_sa/CPoolsSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ void CPoolsSA::RemoveBuilding(CBuilding* pBuilding)
coverList->RemoveItem(pInterface);

// Remove plant
typedef CEntitySAInterface*(__cdecl * CPlantColEntEntry_Remove)(CEntitySAInterface * item);
((CPlantColEntEntry_Remove)0x5DBEF0)(pInterface);
using CPlantColEntry_Remove = CEntitySAInterface* (*)(CEntitySAInterface*);
((CPlantColEntry_Remove)0x5DBEF0)(pInterface);

// Remove col reference
auto modelInfo = pGame->GetModelInfo(pBuilding->GetModelIndex());
Expand Down

0 comments on commit 1d9d416

Please sign in to comment.