Mercurial > wow > itemauditor
comparison 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 |
comparison
equal
deleted
inserted
replaced
36:7c2f4c506015 | 37:9bd18fce8498 |
---|---|
230 invested = abs(self.db.factionrealm.item_account[itemName] or 0), | 230 invested = abs(self.db.factionrealm.item_account[itemName] or 0), |
231 } | 231 } |
232 | 232 |
233 end | 233 end |
234 | 234 |
235 if self.items[link] ~= nil then | |
236 self.items[link].count = Altoholic:GetItemCount(self:GetIDFromLink(link)) | |
237 end | |
238 | |
235 if viewOnly == true and self.items[link] == nil then | 239 if viewOnly == true and self.items[link] == nil then |
236 return {count = 0, invested = 0} | 240 return {count = 0, invested = 0} |
237 elseif viewOnly == true then | 241 elseif viewOnly == true then |
238 | 242 |
239 return {count = self.items[link].count, invested = self.items[link].invested} | 243 return {count = self.items[link].count, invested = self.items[link].invested} |
240 end | 244 end |
241 self.items[link].count = Altoholic:GetItemCount(self:GetIDFromLink(link)) | 245 |
242 | 246 |
243 | 247 |
244 return self.items[link] | 248 return self.items[link] |
245 end | 249 end |
246 | 250 |