Skip to content

Commit

Permalink
fixes check to look for slot being hand not item
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuhuuuu committed Jun 14, 2024
1 parent a521b0f commit 214f4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/inventory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@
if((I.flags_item & NODROP) && !force)
return FALSE //u_equip() only fails if item has NODROP
var/slot = get_slot_by_item(I)
if (I == r_hand)
if (slot == r_hand)
r_hand = null
update_inv_r_hand()
else if (I == l_hand)
else if (slot == l_hand)
l_hand = null
update_inv_l_hand()

Expand Down

0 comments on commit 214f4bd

Please sign in to comment.