Quantcast

patched

Steven Jackson [08-20-14 - 01:24]
patched
Filename
Interface/AddOns/SVUI/system/utilities.lua
diff --git a/Interface/AddOns/SVUI/system/utilities.lua b/Interface/AddOns/SVUI/system/utilities.lua
index 51f7fdd..3570031 100644
--- a/Interface/AddOns/SVUI/system/utilities.lua
+++ b/Interface/AddOns/SVUI/system/utilities.lua
@@ -270,10 +270,10 @@ do
         local category = (inspecting) and "Inspect" or "Character";
         local averageLevel,totalSlots,upgradeAdjust,globalName = 0,0,0;
         for slotName,flags in pairs(_slots) do
-            globalName = format("%s%s", category, slotName)
+            globalName = ("%s%s"):format(category, slotName)
             local slotId = GetInventorySlotInfo(slotName)
             local iLink = GetInventoryItemLink(unit, slotId)
-            if(iLink ~= nil) then
+            if(iLink and type(iLink) == "string") then
                 local iLevel = _scanItemLevel(unit, iLink)
                 if(iLevel and iLevel > 0) then
                     totalSlots = totalSlots + 1;