1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-09 14:49:26 -05:00

Melee weapons: fix not taking held melee weapon when purchasing new melee weapon

This commit is contained in:
Jbleezy 2024-01-10 23:03:32 -08:00
parent e2dd191f1a
commit 21b3a042a0

View File

@ -106,6 +106,7 @@ change_melee_weapon(weapon_name, current_weapon)
if (isDefined(current_melee_weapon) && current_melee_weapon != weapon_name) if (isDefined(current_melee_weapon) && current_melee_weapon != weapon_name)
{ {
self takeweapon(current_melee_weapon); self takeweapon(current_melee_weapon);
self takeweapon("held_" + current_melee_weapon);
unacquire_weapon_toggle(current_melee_weapon); unacquire_weapon_toggle(current_melee_weapon);
} }