Fixed major inventory bug

master
E. Almqvist 5 years ago
parent e2d184ad5d
commit 909f7a5a5c
  1. 3
      gamemode/engine/derma/lib/cl_menu_iteminfo.lua

@ -131,7 +131,8 @@ function iteminfo.giveoptions( p, page )
local itemPanel = p:GetParent() local itemPanel = p:GetParent()
local index = itemPanel.index local index = itemPanel.index
local item = itemPanel.item 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 parWidth, parHeight = itemPanel:GetSize()
local options = vgui.Create( "DPanel", page ) local options = vgui.Create( "DPanel", page )

Loading…
Cancel
Save