fixed errors on 100021

git [01-20-18 - 19:21]
fixed errors on 100021
Filename
IIfA.lua
IIfADataCollection.lua
diff --git a/IIfA.lua b/IIfA.lua
index e5754cf..db08014 100644
--- a/IIfA.lua
+++ b/IIfA.lua
@@ -64,17 +64,17 @@ IIfA.dropdownBankNames = {
 	"Craft Bag"
 }

-if GetAPIVersion() == 100022 then
-	IIfA.trackedBags[BAG_SUBSCRIBER_BANK] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_TWO] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_THREE] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_FOUR] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_FIVE] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_SIX] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_SEVEN] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_EIGHT] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_NINE] = true
-	IIfA.trackedBags[BAG_HOUSE_BANK_TEN] = true
+if GetAPIVersion() >= 100022 then
+	IIfA.trackedBags[BAG_SUBSCRIBER_BANK] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_TWO] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_THREE]	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_FOUR] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_FIVE] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_SIX] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_SEVEN] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_EIGHT] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_NINE] 	= true
+	IIfA.trackedBags[BAG_HOUSE_BANK_TEN] 	= true
 	table.insert(IIfA.dropdownBankNames, "Housing Storage")
 end

diff --git a/IIfADataCollection.lua b/IIfADataCollection.lua
index 28569cc..f433a73 100644
--- a/IIfADataCollection.lua
+++ b/IIfADataCollection.lua
@@ -311,8 +311,8 @@ function IIfA:ValidateItemCounts(bagID, slotNum, dbItem, itemKey)
 			-- we're looking at the right guild bank
 			    data.bagID == BAG_VIRTUAL or
 				data.bagID == BAG_BANK or
-				data.bagID == BAG_SUBSCRIBER_BANK or
-				nil ~= GetCollectibleForHouseBankBag(data.bagID) or -- is housing bank, manaeeee
+				data.bagID == BAG_SUBSCRIBER_BANK or
+				nil ~= GetCollectibleForHouseBankBag and nil ~= GetCollectibleForHouseBankBag(data.bagID) or -- is housing bank, manaeeee
 			   ((data.bagID == BAG_BACKPACK or data.bagID == BAG_WORN) and locName == GetCurrentCharacterId()) then
 --		d(locName)
 --		d(data)
@@ -350,7 +350,7 @@ function IIfA:CollectAll()
 			IIfA:ClearLocationData(GetString(IIFA_BAG_BANK))
 		elseif(bagId == BAG_VIRTUAL)then
 			IIfA:ClearLocationData(GetString(IIFA_BAG_CRAFTBAG))
-		else -- 20.1. mana: bag bag bag
+		elseif GetAPIVersion() >= 100022 then -- 20.1. mana: bag bag bag
 			local collectibleId = GetCollectibleForHouseBankBag(bagId)
 			if IsCollectibleUnlocked(collectibleId) then
 				local name = GetCollectibleNickname(collectibleId) or GetCollectibleName(collectibleId)