Skip to content

Commit

Permalink
fix: reset last weapon on weapons giving
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 23, 2024
1 parent 8de58fa commit decdf16
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,11 @@ static bool: Player_GiveWeapon(const player, const EquipType_e: section) {
charsmax(weaponName)
)

rg_give_item(player, weaponName, .type = GT_REPLACE)
new item = rg_give_item(player, weaponName, .type = GT_REPLACE)

// Reset last item
set_member(player, m_pLastItem, item)

return true
}

Expand Down

0 comments on commit decdf16

Please sign in to comment.