Keep rgbhex temporaries local
This commit is contained in:
+3
-1
@@ -200,6 +200,8 @@ ShaguTweaks.strsplit = function(delimiter, subject)
|
||||
end
|
||||
|
||||
ShaguTweaks.rgbhex = function(r, g, b, a)
|
||||
local _r, _g, _b, _a
|
||||
|
||||
if type(r) == "table" then
|
||||
if r.r then
|
||||
_r, _g, _b, _a = r.r, r.g, r.b, (r.a or 1)
|
||||
@@ -381,4 +383,4 @@ ShaguTweaks.GetItemLinkByName = function(name)
|
||||
return hyperLink
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user