mirror of
https://github.com/GTAmodding/re3.git
synced 2025-08-26 12:24:21 +02:00
Fix NearPed count going negative
This commit is contained in:
committed by
withmorten
parent
523b23339c
commit
fb5a207abc
@@ -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++;
|
||||
|
Reference in New Issue
Block a user