From f7257f01ff4f1543560160734e33cea5d9a17eca Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Tue, 19 Aug 2014 20:24:13 -0500 Subject: [PATCH] patched --- Interface/AddOns/SVUI/system/utilities.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.9.5