Quantcast

Fix equipment over due to string compare to number error

Repooc [08-16-14 - 13:19]
Fix equipment over due to string compare to number error
Filename
ElvUI_SLE/modules/baginfo.lua
diff --git a/ElvUI_SLE/modules/baginfo.lua b/ElvUI_SLE/modules/baginfo.lua
index ac8209a..e46bf1a 100644
--- a/ElvUI_SLE/modules/baginfo.lua
+++ b/ElvUI_SLE/modules/baginfo.lua
@@ -56,7 +56,7 @@ local function BuildEquipmentMap(clear)
 		name = GetEquipmentSetInfo(i)
 		GetEquipmentSetLocations(name, infoArray)
 		for _, location in pairs(infoArray) do
-			if location < -1 or location > 1 then
+			if type(location) == "number" and (location < -1 or location > 1) then
 				player, bank, bags, _, slot, bag = EquipmentManager_UnpackLocation(location)
 				if ((bank or bags) and slot and bag) then
 					key = MapKey(bag, slot)