Mercurial > wow > itemauditor
comparison Core.lua @ 84:210bcf218509 release 2010-08-06
Fixed a bug introduced last night where in some cases there was an error caused by DataStore:GetAuctionHouseItemCount returning nil instead of 0 as I expected.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Fri, 06 Aug 2010 05:59:11 -0700 |
| parents | e9f7bc9199ca |
| children | 8d5ad3b71f6f |
comparison
equal
deleted
inserted
replaced
| 83:94dffffb167c | 84:210bcf218509 |
|---|---|
| 346 local count = 0 | 346 local count = 0 |
| 347 for _, character in pairs(DataStore:GetCharacters()) do | 347 for _, character in pairs(DataStore:GetCharacters()) do |
| 348 bags, bank = DataStore:GetContainerItemCount(character, searchID) | 348 bags, bank = DataStore:GetContainerItemCount(character, searchID) |
| 349 | 349 |
| 350 count = count + bags + bank | 350 count = count + bags + bank |
| 351 + DataStore:GetAuctionHouseItemCount(character, searchID) | 351 + (DataStore:GetAuctionHouseItemCount(character, searchID) or 0) |
| 352 + DataStore:GetInventoryItemCount(character, searchID) | 352 + (DataStore:GetInventoryItemCount(character, searchID) or 0) |
| 353 + DataStore:GetCurrencyItemCount(character, searchID) | 353 + (DataStore:GetCurrencyItemCount(character, searchID) or 0) |
| 354 end | 354 end |
| 355 return count | 355 return count |
| 356 end | 356 end |
| 357 | 357 |
| 358 function ItemAuditor:GetItem(link, viewOnly) | 358 function ItemAuditor:GetItem(link, viewOnly) |
