# HG changeset patch # User Asa Ayers # Date 1281099551 25200 # Node ID 210bcf2185096dad0d964787268de0b71c9e1834 # Parent 94dffffb167c07a2f517ae3ab197d0430047bc82 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. diff -r 94dffffb167c -r 210bcf218509 CHANGELOG.txt --- a/CHANGELOG.txt Thu Aug 05 23:11:59 2010 -0700 +++ b/CHANGELOG.txt Fri Aug 06 05:59:11 2010 -0700 @@ -1,3 +1,7 @@ +2010-08-03 Asa Ayers + +- 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. + 2010-08-05 Asa Ayers - Fixed Bug 22 - Exchanging player bags for bank bags changes invested diff -r 94dffffb167c -r 210bcf218509 Core.lua --- 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