mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 08:50:00 +00:00
Fix CPickups::GenerateNewOne loop
This commit is contained in:
parent
eb4f06114d
commit
8e9c9fa445
|
@ -491,7 +491,7 @@ CPickups::GenerateNewOne(CVector pos, uint32 modelIndex, uint8 type, uint32 quan
|
||||||
int32 slot = 0;
|
int32 slot = 0;
|
||||||
|
|
||||||
if (type == PICKUP_FLOATINGPACKAGE || type == PICKUP_NAUTICAL_MINE_INACTIVE) {
|
if (type == PICKUP_FLOATINGPACKAGE || type == PICKUP_NAUTICAL_MINE_INACTIVE) {
|
||||||
for (slot = NUMPICKUPS; slot >= 0; slot--) {
|
for (slot = NUMPICKUPS-1; slot >= 0; slot--) {
|
||||||
if (aPickUps[slot].m_eType == PICKUP_NONE) {
|
if (aPickUps[slot].m_eType == PICKUP_NONE) {
|
||||||
bFreeFound = true;
|
bFreeFound = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue