Mercurial > wow > itemauditor
changeset 37:9bd18fce8498
Fixed a bug where sometimes the number owned was not being updated, so you might have 3 of an item but it was calculating as if you only had 1.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 18 Jul 2010 21:32:15 -0700 |
parents | 7c2f4c506015 |
children | e27d13095b49 |
files | CHANGELOG.txt Core.lua |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG.txt Sun Jul 18 16:43:43 2010 -0700 +++ b/CHANGELOG.txt Sun Jul 18 21:32:15 2010 -0700 @@ -2,6 +2,7 @@ - Added color coding to the minimum price tooltip. If your minimum price is below the current auction price, it wll be green, otherwise it is red. - Added the ability to change the price of an item. You can click the Total Invested or the Invested Each to change the value. +- Fixed a bug where sometimes the number owned was not being updated, so you might have 3 of an item but it was calculating as if you only had 1. 2010-07-17 Asa Ayers <Asa.Ayers@Gmail.com>
--- a/Core.lua Sun Jul 18 16:43:43 2010 -0700 +++ b/Core.lua Sun Jul 18 21:32:15 2010 -0700 @@ -232,13 +232,17 @@ end + if self.items[link] ~= nil then + self.items[link].count = Altoholic:GetItemCount(self:GetIDFromLink(link)) + end + if viewOnly == true and self.items[link] == nil then return {count = 0, invested = 0} elseif viewOnly == true then return {count = self.items[link].count, invested = self.items[link].invested} end - self.items[link].count = Altoholic:GetItemCount(self:GetIDFromLink(link)) + return self.items[link]