Quantcast

safe check if quality really available

Darthpred [08-31-16 - 12:50]
safe check if quality really available
Filename
ElvUI_SLE/skins/blizzard/merchant.lua
diff --git a/ElvUI_SLE/skins/blizzard/merchant.lua b/ElvUI_SLE/skins/blizzard/merchant.lua
index a5e59d1..b9d0566 100644
--- a/ElvUI_SLE/skins/blizzard/merchant.lua
+++ b/ElvUI_SLE/skins/blizzard/merchant.lua
@@ -99,7 +99,11 @@ local function UpdateBuybackInfo()
 			link = T.GetBuybackItemLink(i);
 			if (link) then
 				_, _, quality = T.GetItemInfo(link);
-				r, g, b = T.GetItemQualityColor(quality);
+				if quality then
+					r, g, b = T.GetItemQualityColor(quality);
+				else
+					r, g, b = 1,1,1
+				end
 				_G["MerchantItem" .. i .. "Name"]:SetTextColor(r, g, b);
 			end
 		end