Skip to content
This repository has been archived by the owner. It is now read-only.

Fix NearPed count going negative #1236

Merged
merged 1 commit into from Jul 13, 2021
Merged
Changes from all commits
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

Fix NearPed count going negative
  • Loading branch information
Nopey committed Jul 13, 2021
commit 894495689f860631fa2f084769473296281a0d85
@@ -326,6 +326,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++;