]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix smart equip (#38605)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Thu, 26 Jun 2025 16:17:25 +0000 (18:17 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Jun 2025 16:17:25 +0000 (12:17 -0400)
Content.Shared/Interaction/SmartEquipSystem.cs

index 797dc367b466a7e2165a9699367b1e85d1cc1639..da79fc1e6916729011af9190e2f46433c9fb88ef 100644 (file)
@@ -80,7 +80,7 @@ public sealed class SmartEquipSystem : EntitySystem
         }
 
         // early out if we have an item and cant drop it at all
-        if (hands.ActiveHandId != null && !_hands.CanDropHeld(uid, hands.ActiveHandId))
+        if (handItem != null && !_hands.CanDropHeld(uid, hands.ActiveHandId))
         {
             _popup.PopupClient(Loc.GetString("smart-equip-cant-drop"), uid, uid);
             return;