Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix CPickups::GenerateNewOne loop
  • Loading branch information
Sergeanur committed Apr 19, 2020
1 parent eb4f061 commit 8e9c9fa445729f67020bf3e96d3c2f801c9cbc87
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/control/Pickups.cpp
@@ -491,7 +491,7 @@ CPickups::GenerateNewOne(CVector pos, uint32 modelIndex, uint8 type, uint32 quan
int32 slot = 0;

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) {
bFreeFound = true;
break;

0 comments on commit 8e9c9fa

Please sign in to comment.