summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-08-18 17:06:04 +0200
committerGitHub <noreply@github.com>2020-08-18 17:06:04 +0200
commit48c5a2abeddd9523b8545c5494cb92be6dffcd18 (patch)
treeee378aba573615b6204790375f15438139cafcc1
parentsubmodule update (diff)
parentCall CWorld::Remove before the delete, the original game does this and its safer. (diff)
downloadre3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.tar
re3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.tar.gz
re3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.tar.bz2
re3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.tar.lz
re3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.tar.xz
re3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.tar.zst
re3-48c5a2abeddd9523b8545c5494cb92be6dffcd18.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Population.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp
index 0756df38..a1bde005 100644
--- a/src/peds/Population.cpp
+++ b/src/peds/Population.cpp
@@ -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;
}