Fixed subinventory staying visible if the slot containing the subinventory gets merged while it's highlighted (e.g. put a stun baton in either hand and swap it with a two-hand item)
This commit is contained in:
@@ -237,6 +237,7 @@ namespace Barotrauma
|
||||
{
|
||||
for (int i = 0; i < capacity - 1; i++)
|
||||
{
|
||||
slots[i].State = GUIComponent.ComponentState.None;
|
||||
if (slots[i].Disabled || Items[i] == null) continue;
|
||||
|
||||
for (int n = i + 1; n < capacity; n++)
|
||||
@@ -250,6 +251,8 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
highlightedSubInventory = null;
|
||||
highlightedSubInventorySlot = null;
|
||||
selectedSlot = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user