Quantcast

update

Steven Jackson [07-05-14 - 00:43]
update
Filename
Interface/AddOns/SVUI/packages/bag/SVBag.lua
diff --git a/Interface/AddOns/SVUI/packages/bag/SVBag.lua b/Interface/AddOns/SVUI/packages/bag/SVBag.lua
index e3d7621..4555663 100644
--- a/Interface/AddOns/SVUI/packages/bag/SVBag.lua
+++ b/Interface/AddOns/SVUI/packages/bag/SVBag.lua
@@ -170,12 +170,14 @@ local function BuildEquipmentMap()
 	for i = 1, GetNumEquipmentSets() do
 		set = GetEquipmentSetInfo(i);
 		gearSet = GetEquipmentSetLocations(set);
-		for key, location in pairs(gearSet)do
-			player, bank, bags, _, index, bag = EquipmentManager_UnpackLocation(location);
-			if((bank or bags) and (index and bag)) then
-				loc = format("%d_%d", bag, index);
-				gearList[loc] = (gearList[loc] or {});
-				tinsert(gearList[loc], set);
+		if(gearSet) then
+			for key, location in pairs(gearSet)do
+				player, bank, bags, _, index, bag = EquipmentManager_UnpackLocation(location);
+				if((bank or bags) and (index and bag)) then
+					loc = format("%d_%d", bag, index);
+					gearList[loc] = (gearList[loc] or {});
+					tinsert(gearList[loc], set);
+				end
 			end
 		end
 	end