summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-08 21:40:05 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-08 21:40:05 +0100
commit51e7f444337c59ce24ad9aecca252e1dd7d91b2e (patch)
treee8d144e519764529672c9081d7f25f2e8e4b75cb /src
parentPossibly fix pickup money text (diff)
downloadre3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.tar
re3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.tar.gz
re3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.tar.bz2
re3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.tar.lz
re3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.tar.xz
re3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.tar.zst
re3-51e7f444337c59ce24ad9aecca252e1dd7d91b2e.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 3d76fe5b..7e7ef321 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -369,7 +369,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
if (weaponType < WEAPONTYPE_TOTALWEAPONS && CDarkel::FrenzyOnGoing()) {
isPickupTouched = false;
m_bWasControlMessageShown = false;
- } else if (weaponType != WEAPONTYPE_UNARMED) {
+ } else if (weaponType < WEAPONTYPE_TOTALWEAPONS && weaponType != WEAPONTYPE_UNARMED) {
uint32 slot = CWeaponInfo::GetWeaponInfo(weaponType)->m_nWeaponSlot;
eWeaponType plrWeaponSlot = FindPlayerPed()->GetWeapon(slot).m_eWeaponType;
if (plrWeaponSlot != weaponType) {