Mercurial > wow > itemauditor
diff Core.lua @ 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 | aaa716c93fb2 |
children | e27d13095b49 |
line wrap: on
line diff
--- 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]