Keep rgbhex temporaries local

This commit is contained in:
2026-08-23 21:52:47 +02:00
parent c55616ff8d
commit 7c146b4c86
+3 -1
View File
@@ -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