Quantcast

In GenerateTooltipContent(): Removed a call to select() in favor of throwaway variables.

James D. Callahan III [03-22-10 - 00:56]
In GenerateTooltipContent(): Removed a call to select() in favor of throwaway variables.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 78247b6..09c0db6 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -643,7 +643,7 @@ do
 			-- Pass true as second parameter because hooking OnHide causes C stack overflows -Torhal
 			TipTac:AddModifiedTip(acquire_tip, true)
 		end
-		local quality_color = select(4, GetItemQualityColor(recipe_entry.quality))
+		local _, _, _, quality_color = GetItemQualityColor(recipe_entry.quality)

 		acquire_tip:Clear()
 		acquire_tip:SetScale(addon.db.profile.frameopts.tooltipscale)