Quantcast

Preventing nils

Darthpred [10-16-14 - 07:56]
Preventing nils
Filename
ElvUI_SLE/modules/loot.lua
diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua
index f341951..21c2f8a 100644
--- a/ElvUI_SLE/modules/loot.lua
+++ b/ElvUI_SLE/modules/loot.lua
@@ -74,12 +74,12 @@ local function PopulateTable(q)

 			if quality >= q then
 				link = GetLootSlotLink(i)
-				ilvl = select(4, GetItemInfo(link))
+				ilvl = select(4, GetItemInfo(link)) or QUEUED_STATUS_UNKNOWN

 				n = n + 1
 				loot[n] = link
 				loot[n] = loot[n].." (ilvl: "..ilvl..")"
-				numbers[n] = quantity
+				numbers[n] = quantity or 1
 			end
 		end
 	end