Skip to content

Commit

Permalink
Fix removeWorldModel crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Jul 14, 2024
1 parent 8e72db1 commit 1b7dfa8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/game_sa/CGameSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,11 @@ void CGameSA::RemoveAllBuildings()

m_pPools->GetDummyPool().RemoveAllBuildingLods();
m_pPools->GetBuildingsPool().RemoveAllBuildings();

auto pBuildingRemoval = ((CBuildingRemovalSA*)GetBuildingRemoval());
pBuildingRemoval->ClearRemovedBuildingLists();
pBuildingRemoval->DropCaches();

m_isBuildingsRemoved = true;
}

Expand Down

0 comments on commit 1b7dfa8

Please sign in to comment.