Quantcast

- Fixed crippling bug that I forgot to fix in the last build. Sorry.

Lanerra [10-25-14 - 07:25]
- Fixed crippling bug that I forgot to fix in the last build. Sorry.
Filename
oUF_Lanerra.lua
diff --git a/oUF_Lanerra.lua b/oUF_Lanerra.lua
index 720fb4a..a411bc5 100644
--- a/oUF_Lanerra.lua
+++ b/oUF_Lanerra.lua
@@ -71,20 +71,12 @@ Loader:SetScript('OnEvent', function(self, event, addon)
 end)

 -- Threat color handling
-colors.threat = {}
+oUF.colors.threat = {}
 for i = 1, 3 do
 	local r, g, b = GetThreatStatusColor(i)
 	oUF.colors.threat[i] = { r, g, b }
 end

--- Color conversion function
-function hex(r, g, b)
-	if(type(r) == 'table') then
-		if(r.r) then r, g, b = r.r, r.g, r.b else r, g, b = unpack(r) end
-	end
-	return ('|cff%02x%02x%02x'):format(r * 255, g * 255, b * 255)
-end
-
 ---- No More Lazy Stuff!

 -- Border update function