diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-17 09:06:37 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-17 09:06:37 +0200 |
commit | 0a23afebb70851e4f09b335483b43aac997cb3f8 (patch) | |
tree | 1277f04d86d3c47024a7768fafaa667a3444fb82 /src/peds/Ped.cpp | |
parent | Merge remote-tracking branch 'upstream/lcs' into lcs (diff) | |
parent | Merge remote-tracking branch 'origin/miami' into lcs (diff) | |
download | re3-0a23afebb70851e4f09b335483b43aac997cb3f8.tar re3-0a23afebb70851e4f09b335483b43aac997cb3f8.tar.gz re3-0a23afebb70851e4f09b335483b43aac997cb3f8.tar.bz2 re3-0a23afebb70851e4f09b335483b43aac997cb3f8.tar.lz re3-0a23afebb70851e4f09b335483b43aac997cb3f8.tar.xz re3-0a23afebb70851e4f09b335483b43aac997cb3f8.tar.zst re3-0a23afebb70851e4f09b335483b43aac997cb3f8.zip |
Diffstat (limited to 'src/peds/Ped.cpp')
-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 8729ce26..9d261010 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++; |