summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorMagnus Larsen <golgothasTerror101@gmail.com>2021-07-13 08:51:28 +0200
committerwithmorten <morten.with@gmail.com>2021-07-13 17:45:01 +0200
commitfb5a207abcdf7b76fdb719b46c5c706deb7026fa (patch)
treeb0312b0963e437a9d2a866fab900d4bc4bd22311 /src/peds
parentdisable USE_CUTSCENE_SHADOW_FOR_PED if COMPATIBLE_SAVES isn't defined (diff)
downloadre3-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
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp1
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++;