Mercurial > wow > itemauditor
diff 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 |
line wrap: on
line diff
--- a/Core.lua Thu Aug 05 23:11:59 2010 -0700 +++ b/Core.lua Fri Aug 06 05:59:11 2010 -0700 @@ -348,9 +348,9 @@ bags, bank = DataStore:GetContainerItemCount(character, searchID) count = count + bags + bank - + DataStore:GetAuctionHouseItemCount(character, searchID) - + DataStore:GetInventoryItemCount(character, searchID) - + DataStore:GetCurrencyItemCount(character, searchID) + + (DataStore:GetAuctionHouseItemCount(character, searchID) or 0) + + (DataStore:GetInventoryItemCount(character, searchID) or 0) + + (DataStore:GetCurrencyItemCount(character, searchID) or 0) end return count end