From 9cd6f206ad207af3c7885ab3a0e177bb263b822a Mon Sep 17 00:00:00 2001 From: joewis <74438661+joewis@users.noreply.github.com> Date: Mon, 1 Nov 2021 07:54:59 +0800 Subject: [PATCH] Disable shift-clicking of items you don't have stats to wear --- Source/inv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 94e3a2b8c..836c72c75 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -829,7 +829,7 @@ void CheckInvCut(int pnum, Point cursorPosition, bool automaticMove, bool dropIt if (automaticMove) { if (CanBePlacedOnBelt(holdItem)) { automaticallyMoved = AutoPlaceItemInBelt(player, holdItem, true); - } else { + } else if (CanEquip(holdItem)) { /* * Move the respective InvBodyItem to inventory before moving the item from inventory * to InvBody with AutoEquip. AutoEquip requires the InvBody slot to be empty.