summaryrefslogtreecommitdiffstats
path: root/src/control/Darkel.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-18 03:54:01 +0200
committerSergeanur <s.anureev@yandex.ua>2020-10-18 03:54:01 +0200
commitb3385015e5b151031afba52f71536063339f52e7 (patch)
tree352d983b14c36d821c7d2a747e3f72f9129c688e /src/control/Darkel.cpp
parentPickup arrays done (diff)
parentMerge pull request #765 from erorcun/miami (diff)
downloadre3-b3385015e5b151031afba52f71536063339f52e7.tar
re3-b3385015e5b151031afba52f71536063339f52e7.tar.gz
re3-b3385015e5b151031afba52f71536063339f52e7.tar.bz2
re3-b3385015e5b151031afba52f71536063339f52e7.tar.lz
re3-b3385015e5b151031afba52f71536063339f52e7.tar.xz
re3-b3385015e5b151031afba52f71536063339f52e7.tar.zst
re3-b3385015e5b151031afba52f71536063339f52e7.zip
Diffstat (limited to 'src/control/Darkel.cpp')
-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);
}