From bb9b2c6eb7088e55c647b2b543f0056ce7c44ba1 Mon Sep 17 00:00:00 2001 From: Regalis Date: Fri, 21 Oct 2016 18:30:03 +0300 Subject: [PATCH] Fixed inventory getting "stuck" if slots are merged while one of them is selected --- Subsurface/Source/Items/CharacterInventory.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Subsurface/Source/Items/CharacterInventory.cs b/Subsurface/Source/Items/CharacterInventory.cs index d29cf9a83..ab1cbd4d5 100644 --- a/Subsurface/Source/Items/CharacterInventory.cs +++ b/Subsurface/Source/Items/CharacterInventory.cs @@ -412,6 +412,8 @@ namespace Barotrauma } } } + + selectedSlot = -1; } public void DrawOwn(SpriteBatch spriteBatch)