house furniture collecting, db reset

git [02-21-18 - 16:27]
house furniture collecting, db reset
Filename
IIfA/IIfADataCollection.lua
IIfA/IIfAMenu.lua
diff --git a/IIfA/IIfADataCollection.lua b/IIfA/IIfADataCollection.lua
index aa70b13..e1962d1 100644
--- a/IIfA/IIfADataCollection.lua
+++ b/IIfA/IIfADataCollection.lua
@@ -285,10 +285,10 @@ function IIfA:RescanHouse(houseCollectibleId)

 	houseCollectibleId = houseCollectibleId or GetCollectibleIdForHouse(GetCurrentZoneHouseId())
 	if not houseCollectibleId then return end
-
+	if not IIfA:GetHouseTracking() then return end

 	IIfA.data.collectHouseData[houseCollectibleId] = IIfA.data.collectHouseData[houseCollectibleId] or IIfA:GetHouseTracking()
-
+
 	if not IIfA.data.collectHouseData[houseCollectibleId] then
 		if IIfA:GetHouseTracking() and IIfA:GetIgnoredHouseIds()[houseCollectibleId] then
 			IIfA.trackedBags[houseCollectibleId] = false
diff --git a/IIfA/IIfAMenu.lua b/IIfA/IIfAMenu.lua
index 62d0418..3fe49ab 100644
--- a/IIfA/IIfAMenu.lua
+++ b/IIfA/IIfAMenu.lua
@@ -103,8 +103,7 @@ function IIfA:CreateOptionsMenu()
 					name = "Wipe database",
 					tooltip = "Deletes all collected data",
 					func = function()
-						local worldName 		= GetWorldName():gsub(" Megaserver", "")
-						IIfA.data[worldName] 	= {}
+						IIfA.database 			= {}
 						IIfA:ScanCurrentCharacterAndBank()
 					end,
 				}, -- button end