mirror of
https://github.com/halpz/re3.git
synced 2024-12-23 17:45:28 +00:00
Fix NearPed count going negative
This commit is contained in:
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++;
|
||||
|
|
Loading…
Reference in a new issue