summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-19 23:14:48 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-19 23:14:48 +0200
commit8e9c9fa445729f67020bf3e96d3c2f801c9cbc87 (patch)
tree45802f92129d94918df4e451ded58c51a09229e8 /src
parentMerge pull request #476 from Fire-Head/master (diff)
downloadre3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.tar
re3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.tar.gz
re3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.tar.bz2
re3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.tar.lz
re3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.tar.xz
re3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.tar.zst
re3-8e9c9fa445729f67020bf3e96d3c2f801c9cbc87.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Pickups.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index f9605ca6..1bf6d9ce 100644
--- a/src/control/Pickups.cpp
+++ b/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;