changeset 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 94dffffb167c
children a425f8345087
files CHANGELOG.txt Core.lua
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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  <Asa.Ayers@Gmail.com>
+
+- 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  <Asa.Ayers@Gmail.com>
 
 - Fixed Bug 22 - Exchanging player bags for bank bags changes invested
--- 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