fixed issue with selling suffix items

This commit is contained in:
Manuel Simon Hirsig
2015-10-09 20:37:38 +02:00
parent 3468b50c1c
commit a43a9dbe9c
2 changed files with 4 additions and 7 deletions
+2 -5
View File
@@ -86,11 +86,8 @@ function move_item(from_slot, to_slot, amount)
end
function item_name(slot)
local hyperlink = GetContainerItemLink(slot.bag, slot.bag_slot)
if hyperlink then
local _, _, item_name = strfind(hyperlink, "^.-%[(.*)%].*")
return item_name
end
local container_item_info = Aux.info.container_item(slot.bag, slot.bag_slot)
return container_item_info and container_item_info.name
end
function item_id(slot)