mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 18:05:43 +00:00
Call CWorld::Remove before the delete, the original game does this and its safer.
This commit is contained in:
parent
c63887637b
commit
2dcf31b6c7
1 changed files with 1 additions and 2 deletions
|
@ -117,8 +117,7 @@ CPopulation::Initialise()
|
||||||
void
|
void
|
||||||
CPopulation::RemovePed(CPed *ent)
|
CPopulation::RemovePed(CPed *ent)
|
||||||
{
|
{
|
||||||
// CPed dtor already does that
|
CWorld::Remove((CEntity*)ent);
|
||||||
// CWorld::Remove((CEntity*)ent);
|
|
||||||
delete ent;
|
delete ent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue