mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
Merge remote-tracking branch 'upstream/miami' into miami
This commit is contained in:
commit
a9bf0fa97e
@ -159,8 +159,12 @@ CProjectileInfo::AddProjectile(CEntity *entity, eWeaponType weapon, CVector pos,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
while (i < ARRAY_SIZE(gaProjectileInfo) && gaProjectileInfo[i].m_bInUse) i++;
|
||||||
|
#else
|
||||||
|
// array overrun is UB
|
||||||
while (gaProjectileInfo[i].m_bInUse && i < ARRAY_SIZE(gaProjectileInfo)) i++;
|
while (gaProjectileInfo[i].m_bInUse && i < ARRAY_SIZE(gaProjectileInfo)) i++;
|
||||||
|
#endif
|
||||||
if (i == ARRAY_SIZE(gaProjectileInfo))
|
if (i == ARRAY_SIZE(gaProjectileInfo))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user