Mercurial > wow > itemauditor
diff Modules/DisplayInvested.lua @ 138:7d258c041b11
Fixed an issue with /ia invested that caused all items to display twice. This was introduced by the fix in Ticket 42.
At this point ItemAuditor watches mail for auctions sold or purchased, watches for buy/sell (money and 1 item type change) and conversions/tradeskills. Milling isn't working yet because there is too much time between the first event and the last event.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 02 Oct 2010 20:34:07 -0700 |
parents | e9f7bc9199ca |
children | 106c1523777e |
line wrap: on
line diff
--- a/Modules/DisplayInvested.lua Sat Oct 02 19:21:56 2010 -0700 +++ b/Modules/DisplayInvested.lua Sat Oct 02 20:34:07 2010 -0700 @@ -185,20 +185,20 @@ investedPerItem, count, } - + totalInvested = totalInvested + investedTotal - + i = i + 1 - includedItems[safeLink] = true + includedItems[ItemAuditor:GetIDFromLink(safeLink)] = true end end local inventory = ItemAuditor:GetCurrentInventory() - for link, count in pairs(inventory.items) do - if includedItems[link] == nil then - local count = ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(link)) - local itemName, link = GetItemInfo(link) + for itemID, count in pairs(inventory.items) do + if includedItems[itemID] == nil then + local itemName, link = GetItemInfo(itemID) + local count = ItemAuditor:GetItemCount(itemID) tableData[i] = { itemName.."|"..link, 0,