Fix NearPed count going negative #1236

Merged
Nopey merged 1 commits from fix_nearPeds into master 3 years ago

@ -326,6 +326,7 @@ CPed::~CPed(void)
nearPed->m_nearPeds[k] = nearPed->m_nearPeds[k + 1]; nearPed->m_nearPeds[k] = nearPed->m_nearPeds[k + 1];
nearPed->m_nearPeds[k + 1] = nil; nearPed->m_nearPeds[k + 1] = nil;
} }
nearPed->m_nearPeds[ARRAY_SIZE(m_nearPeds) - 1] = nil;
nearPed->m_numNearPeds--; nearPed->m_numNearPeds--;
} else } else
j++; j++;