mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2025-01-11 01:19:07 +01: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…
x
Reference in New Issue
Block a user