From 9d65580294e1cfb9b7ee16793c377c2f2ad3c72d Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 27 Mar 2022 00:47:26 +0100 Subject: [PATCH] [gamepad] Fix managing belt --- Source/controls/plrctrls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/controls/plrctrls.cpp b/Source/controls/plrctrls.cpp index 2116af205..e5c6b647d 100644 --- a/Source/controls/plrctrls.cpp +++ b/Source/controls/plrctrls.cpp @@ -1528,7 +1528,7 @@ void PerformPrimaryAction() if (pcurs > CURSOR_HAND && pcurs < CURSOR_FIRSTITEM) { TryIconCurs(); NewCursor(CURSOR_HAND); - } else if (GetRightPanel().Contains(MousePosition)) { + } else if (GetRightPanel().Contains(MousePosition) || GetMainPanel().Contains(MousePosition)) { int inventorySlot = (Slot >= 0) ? Slot : FindClosestInventorySlot(MousePosition); // Find any item occupying a slot that is currently under the cursor