From 214f4bd38955ba317357ee4326301a7767c8e052 Mon Sep 17 00:00:00 2001 From: vincibrv Date: Fri, 14 Jun 2024 13:50:29 +0200 Subject: [PATCH] fixes check to look for slot being hand not item --- code/modules/mob/inventory.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index c9837e144c1b..dc6442f951c2 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -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()