mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 01:38:18 +08:00
Merge pull request #689 from jack9267/master
Call CWorld::Remove before the delete
This commit is contained in:
1 file changed
+1
-2
@@ -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