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 )