From 0db18858723a40ff6c40b7cb9d1d37effb65fd08 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 15 Jan 2018 19:23:15 +0200 Subject: [PATCH] Fixed being unable to drag inventory slots if the subinventory of the slot is highlighted --- Barotrauma/BarotraumaClient/Source/Items/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs b/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs index 5384f8721..c3d1afe85 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Inventory.cs @@ -186,7 +186,7 @@ namespace Barotrauma if (mouseOn && (draggingItem != null || selectedSlot == null || selectedSlot.Slot == slot) && - (highlightedSubInventory == null || highlightedSubInventory == this || highlightedSubInventorySlot?.Slot == slot)) + (highlightedSubInventory == null || highlightedSubInventory == this || highlightedSubInventorySlot?.Slot == slot || highlightedSubInventory.Owner == item)) { slot.State = GUIComponent.ComponentState.Hover;