diff options
Diffstat (limited to 'src/control/Pickups.cpp')
-rw-r--r-- | src/control/Pickups.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp index f31d89b3..020083cf 100644 --- a/src/control/Pickups.cpp +++ b/src/control/Pickups.cpp @@ -709,8 +709,10 @@ bool CPickups::TestForPickupsInBubble(CVector pos, float range) { for (int i = 0; i < NUMPICKUPS; i++) { - if ((aPickUps[i].m_vecPos - pos).Magnitude() < range) - return true; + if (aPickUps[i].m_eType != PICKUP_NONE) { + if ((aPickUps[i].m_vecPos - pos).Magnitude() < range) + return true; + } } return false; } |