mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-29 04:24:14 +01:00
Fix NearPed count going negative
This commit is contained in:
parent
e9baf31ad8
commit
894495689f
@ -326,6 +326,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 New Issue
Block a user