mirror of
https://github.com/halpz/re3.git
synced 2024-12-24 17:55:29 +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] = 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++;
|
||||||
|
|
Loading…
Reference in a new issue