Quantcast

Fixed faction checks for Location and Acquisition sorting - it helps to check for "boolean" rather than "bool" for a type.

James D. Callahan III [03-23-10 - 08:38]
Fixed faction checks for Location and Acquisition sorting - it helps to check for "boolean" rather than "bool" for a type.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 24946b0..c70f45a 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2554,7 +2554,7 @@ do
 						local recipe = private.recipe_list[spell_id]
 						local has_faction = false

-						if type(faction) == "bool"
+						if type(faction) == "boolean"
 						   or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then
 							has_faction = true
 						end
@@ -2591,7 +2591,7 @@ do
 						local recipe = private.recipe_list[spell_id]
 						local has_faction = false

-						if type(faction) == "bool"
+						if type(faction) == "boolean"
 						   or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then
 							has_faction = true
 						end