Mercurial > wow > itemauditor
diff Modules/Events.lua @ 157:091bae7bfca0
Fixed a bug in calculating purchase/sale where the item ID was being used instead of the number of items that changed.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Wed, 15 Dec 2010 22:49:28 -0800 |
parents | 47885ba83d38 |
children |
line wrap: on
line diff
--- a/Modules/Events.lua Fri Dec 10 00:48:20 2010 -0800 +++ b/Modules/Events.lua Wed Dec 15 22:49:28 2010 -0800 @@ -400,7 +400,7 @@ self:Debug("purchase or sale") for itemID, count in pairs(diff.items) do - self:SaveValue(itemID, 0 - diff.money, itemID) + self:SaveValue(itemID, 0 - diff.money, count) end elseif self:tcount(diff.items) > 1 and self:tcount(positive) > 0 and self:tcount(negative) > 0 then -- we must have created/converted something