2.4.7 prevented invalid item links from showing up in filter results
git [05-26-18 - 15:52]
2.4.7 prevented invalid item links from showing up in filter results
diff --git a/FurCFilter.lua b/FurCFilter.lua
index a97d0f5..c064329 100644
--- a/FurCFilter.lua
+++ b/FurCFilter.lua
@@ -153,7 +153,10 @@ function FurC.MatchFilter(currentItemId, currentRecipeArray)
itemLink = FurC.GetItemLink(itemId)
recipeArray = currentRecipeArray or FurC.Find(itemLink)
itemType, sItemType = GetItemLinkItemType(itemLink)
-
+ if 0 == itemType and 0 == sItemType then
+ p("invalid item type for <<1>>", currentItemId)
+ return false
+ end
if filterBooks(itemId, recipeArray) then return false end
diff --git a/FurnitureCatalogue.txt b/FurnitureCatalogue.txt
index c091306..4e80ea9 100644
--- a/FurnitureCatalogue.txt
+++ b/FurnitureCatalogue.txt
@@ -1,6 +1,6 @@
## Title: FurnitureCatalogue
## Author: manavortex
-## Version: 2.4.6
+## Version: 2.4.7
## APIVersion: 100023
## SavedVariables: FurnitureCatalogue_Settings
## OptionalDependsOn: pChat
diff --git a/startup.lua b/startup.lua
index 891c6c7..2fa7ef9 100644
--- a/startup.lua
+++ b/startup.lua
@@ -1,7 +1,7 @@
FurnitureCatalogue = {}
FurnitureCatalogue.name = "FurnitureCatalogue"
FurnitureCatalogue.author = "manavortex"
-FurnitureCatalogue.version = "2.4.6"
+FurnitureCatalogue.version = "2.4.7"
FurnitureCatalogue.CharacterName = nil
FurnitureCatalogue.settings = {}