Call CWorld::Remove before the delete, the original game does this and its safer.

This commit is contained in:
Jack Powell 2020-08-18 15:57:40 +01:00
parent c63887637b
commit 2dcf31b6c7
No known key found for this signature in database
GPG Key ID: 3C3DF56965343191
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}