summaryrefslogtreecommitdiffstats
path: root/src/weapons/Weapon.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-22 20:17:55 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-22 20:17:55 +0200
commitcc13e31264730502d2055912d223a36d3733f9cd (patch)
tree50a7624c33e5c76158fd082a617e0db2854e8782 /src/weapons/Weapon.cpp
parentMerge branch 'miami' into lcs (diff)
parentPossible fix of RemoveAndAdd crash (diff)
downloadre3-cc13e31264730502d2055912d223a36d3733f9cd.tar
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.gz
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.bz2
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.lz
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.xz
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.zst
re3-cc13e31264730502d2055912d223a36d3733f9cd.zip
Diffstat (limited to 'src/weapons/Weapon.cpp')
-rw-r--r--src/weapons/Weapon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index e546eb05..bac82588 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -3182,7 +3182,7 @@ bool
CPed::IsPedDoingDriveByShooting(void)
{
#ifdef FIX_BUGS
- if (FindPlayerPed() == this && CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType)->m_nWeaponSlot == 5) {
+ if (FindPlayerPed() == this && CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType)->m_nWeaponSlot == WEAPONSLOT_SUBMACHINEGUN) {
#else
if (FindPlayerPed() == this && GetWeapon()->m_eWeaponType == WEAPONTYPE_UZI) {
#endif