diff options
author | Magnus Larsen <golgothasTerror101@gmail.com> | 2021-07-13 08:51:28 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-07-13 17:45:01 +0200 |
commit | fb5a207abcdf7b76fdb719b46c5c706deb7026fa (patch) | |
tree | b0312b0963e437a9d2a866fab900d4bc4bd22311 | |
parent | disable USE_CUTSCENE_SHADOW_FOR_PED if COMPATIBLE_SAVES isn't defined (diff) | |
download | re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.tar re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.tar.gz re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.tar.bz2 re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.tar.lz re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.tar.xz re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.tar.zst re3-fb5a207abcdf7b76fdb719b46c5c706deb7026fa.zip |
-rw-r--r-- | src/peds/Ped.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 7fe2520d..cad10d8a 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -421,6 +421,7 @@ CPed::~CPed(void) nearPed->m_nearPeds[k] = nearPed->m_nearPeds[k + 1]; nearPed->m_nearPeds[k + 1] = nil; } + nearPed->m_nearPeds[ARRAY_SIZE(m_nearPeds) - 1] = nil; nearPed->m_numNearPeds--; } else j++; |