diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-14 23:51:01 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-14 23:51:01 +0200 |
commit | 3377709c4b8d27599918beaa363e0eb40d2099a9 (patch) | |
tree | 110127eb9a51737be58f542ac9dd695cc08795bb /src/peds/Ped.cpp | |
parent | Update GXT (diff) | |
parent | Remove stupid cast (diff) | |
download | re3-3377709c4b8d27599918beaa363e0eb40d2099a9.tar re3-3377709c4b8d27599918beaa363e0eb40d2099a9.tar.gz re3-3377709c4b8d27599918beaa363e0eb40d2099a9.tar.bz2 re3-3377709c4b8d27599918beaa363e0eb40d2099a9.tar.lz re3-3377709c4b8d27599918beaa363e0eb40d2099a9.tar.xz re3-3377709c4b8d27599918beaa363e0eb40d2099a9.tar.zst re3-3377709c4b8d27599918beaa363e0eb40d2099a9.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++; |