# HG changeset patch # User Asa Ayers # Date 1279513935 25200 # Node ID 9bd18fce8498cf235b877df5b81a6a1eff502093 # Parent 7c2f4c506015812ad4604bf38f8e04aa42998968 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. diff -r 7c2f4c506015 -r 9bd18fce8498 CHANGELOG.txt --- 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 diff -r 7c2f4c506015 -r 9bd18fce8498 Core.lua --- 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]