Quantcast

Cange output for sorted table in ilvl dt. This fixes #309

Darthpred [08-28-16 - 09:02]
Cange output for sorted table in ilvl dt. This fixes #309
Filename
ElvUI_SLE/modules/sledatatexts/itemlevel.lua
diff --git a/ElvUI_SLE/modules/sledatatexts/itemlevel.lua b/ElvUI_SLE/modules/sledatatexts/itemlevel.lua
index 8ef34fc..a0abd83 100644
--- a/ElvUI_SLE/modules/sledatatexts/itemlevel.lua
+++ b/ElvUI_SLE/modules/sledatatexts/itemlevel.lua
@@ -87,7 +87,7 @@ local function OnEnter(self)
 			tooltipOrder[slots[i][3]] = {slots[i][2], itemLevel, 1, 1, 1, color[1], color[2], color[3]}
 		end
 	end
-	for i = 1, #tooltipOrder do
+	for i in T.pairs(tooltipOrder) do
 		if tooltipOrder[i] then DT.tooltip:AddDoubleLine(T.unpack(tooltipOrder[i])) end
 	end
 	DT.tooltip:Show()