mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-01 12:31:04 +02:00
Call CWorld::Remove before the delete, the original game does this and its safer.
This commit is contained in:
@@ -117,8 +117,7 @@ CPopulation::Initialise()
|
||||
void
|
||||
CPopulation::RemovePed(CPed *ent)
|
||||
{
|
||||
// CPed dtor already does that
|
||||
// CWorld::Remove((CEntity*)ent);
|
||||
CWorld::Remove((CEntity*)ent);
|
||||
delete ent;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user