We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f94d8 commit 7daa694Copy full SHA for 7daa694
Client/game_sa/CBuildingsPoolSA.cpp
@@ -101,7 +101,14 @@ void CBuildingsPoolSA::RemoveBuilding(CBuilding* pBuilding)
101
// Remove plant
102
pGame->GetPlantManager()->RemovePlant(pInterface);
103
104
- RemoveBuildingFromWorld(pInterface);
+ // Remove shadow
105
+ pInterface->RemoveShadows();
106
+
107
+ // Remove building from world
108
+ pGame->GetWorld()->Remove(pInterface, CBuildingPool_Destructor);
109
110
+ // Call virtual destructor
111
+ ((void*(__thiscall*)(void*, char))pInterface->vtbl->SCALAR_DELETING_DESTRUCTOR)(pInterface, 0);
112
113
// Remove col reference
114
auto modelInfo = pGame->GetModelInfo(pBuilding->GetModelIndex());
0 commit comments