1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 00:50:00 +00:00

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

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