diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 12:40:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 12:40:20 +0200 |
commit | 81e711517d30846b0387a01a8d40d40ea9ae47c1 (patch) | |
tree | 8215b0cc9170c387f504cf58a4c6bcb5cbc37f07 /src/control/Replay.cpp | |
parent | remove some unneeded plane paths for the moment; also different exe icon (diff) | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.gz re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.bz2 re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.lz re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.xz re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.zst re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Replay.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp index ab187c10..abd96112 100644 --- a/src/control/Replay.cpp +++ b/src/control/Replay.cpp @@ -17,6 +17,7 @@ #include "ModelInfo.h" #include "Object.h" #include "Pad.h" +#include "PedAttractor.h" #include "Phones.h" #include "Pickups.h" #include "Plane.h" @@ -1116,6 +1117,14 @@ void CReplay::StoreStuffInMem(void) for (int i = 0; i < NUMPLAYERS; i++) nHandleOfPlayerPed[i] = CPools::GetPedPool()->GetIndex(CWorld::Players[i].m_pPed); #endif + int i = CPools::GetPedPool()->GetSize(); + while (--i >= 0) { + CPed* ped = CPools::GetPedPool()->GetSlot(i); + if (!ped) + continue; + if (ped->m_attractor) + GetPedAttractorManager()->DeRegisterPed(ped, ped->m_attractor); + } CPools::GetVehiclePool()->Store(pBuf0, pBuf1); CPools::GetPedPool()->Store(pBuf2, pBuf3); CPools::GetObjectPool()->Store(pBuf4, pBuf5); |