Missed existing onInventoryChange hook

This commit is contained in:
BeniS 2013-02-21 04:34:06 +13:00
parent 3b91c4d509
commit cb3f06358c
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,6 @@ selectedItem = nil
cancelNextRelease = nil
function init()
connect(LocalPlayer, {onInventoryChange = refreshPlayerGoods})
npcWindow = g_ui.displayUI('npctrade')
npcWindow:setVisible(false)
@ -454,6 +453,7 @@ function onInventoryChange(inventory, item, oldItem)
if selectedItem then
refreshItem(selectedItem)
end
refreshPlayerGoods()
end
function getTradeItemData(id, type)