diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-08-18 17:06:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 17:06:04 +0200 |
commit | 48c5a2abeddd9523b8545c5494cb92be6dffcd18 (patch) | |
tree | ee378aba573615b6204790375f15438139cafcc1 | |
parent | submodule update (diff) | |
parent | Call CWorld::Remove before the delete, the original game does this and its safer. (diff) | |
download | re3-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.cpp | 3 |
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; } |