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

View File

@@ -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;