summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-17 11:31:14 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-17 11:31:14 +0200
commit40434eadfdcf0bcacc7a604b3e3912d7a4a0d805 (patch)
tree66e4020050a7a45231138aacc80f111ecaa09ecc /src
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.tar
re3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.tar.gz
re3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.tar.bz2
re3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.tar.lz
re3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.tar.xz
re3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.tar.zst
re3-40434eadfdcf0bcacc7a604b3e3912d7a4a0d805.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Darkel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Darkel.cpp b/src/control/Darkel.cpp
index 13c49c99..e44cdda9 100644
--- a/src/control/Darkel.cpp
+++ b/src/control/Darkel.cpp
@@ -391,7 +391,7 @@ CDarkel::DealWithWeaponChangeAtEndOfFrenzy()
CPlayerPed* player = FindPlayerPed();
if (fixedWeapon < WEAPONTYPE_TOTALWEAPONS) {
- player->m_nSelectedWepSlot = InterruptedWeaponType;
+ player->m_nSelectedWepSlot = CWeaponInfo::GetWeaponInfo((eWeaponType)InterruptedWeaponSelected)->m_nWeaponSlot;
player->GiveWeapon((eWeaponType)InterruptedWeaponType, AmmoInterruptedWeapon, true);
}