refactoring, bugfix

This commit is contained in:
Manuel Simon Hirsig
2016-11-09 02:08:45 +01:00
parent c7d2284b3d
commit 05fb051bd4
18 changed files with 109 additions and 99 deletions
+4 -2
View File
@@ -30,8 +30,10 @@ function LOAD()
CreateFrame('Frame', nil, MerchantFrame):SetScript('OnUpdate', merchant_on_update)
event_listener('NEW_AUCTION_UPDATE', function()
for data in present(info.auction_sell_item()) do
for item_id in present(item_id(data.name)) do
local data = info.auction_sell_item()
if data then
local item_id = item_id(data.name)
if item_id then
aux_merchant_sell[_M.item_id(data.name)] = data.vendor_price / (info.max_item_charges(item_id) or data.count)
end
end