From 909f7a5a5c9b5443d2998a2ea614baad338d4af4 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 15 Feb 2020 17:13:54 +0100 Subject: [PATCH] Fixed major inventory bug --- gamemode/engine/derma/lib/cl_menu_iteminfo.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamemode/engine/derma/lib/cl_menu_iteminfo.lua b/gamemode/engine/derma/lib/cl_menu_iteminfo.lua index ce8d9cd..ca67cda 100644 --- a/gamemode/engine/derma/lib/cl_menu_iteminfo.lua +++ b/gamemode/engine/derma/lib/cl_menu_iteminfo.lua @@ -131,7 +131,8 @@ function iteminfo.giveoptions( p, page ) local itemPanel = p:GetParent() local index = itemPanel.index local item = itemPanel.item - local amount = item.amount + local amount = Quantum.Client.Inventory[index][2] -- get the item amount directly from the inventory + local parWidth, parHeight = itemPanel:GetSize() local options = vgui.Create( "DPanel", page )