Fixed being unable to drag inventory slots if the subinventory of the slot is highlighted

This commit is contained in:
Joonas Rikkonen
2018-01-15 19:23:15 +02:00
parent 2ba339035c
commit 0db1885872
@@ -186,7 +186,7 @@ namespace Barotrauma
if (mouseOn && if (mouseOn &&
(draggingItem != null || selectedSlot == null || selectedSlot.Slot == slot) && (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; slot.State = GUIComponent.ComponentState.Hover;