mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- possibly fix weird issue where GetClassColor could be called with a function argument from somewhere...I can't reproduce the error, but several people have reported it, so this ought to fix it.
This commit is contained in:
@ -306,6 +306,8 @@ function IceElement.prototype:GetClassColor(class)
|
|||||||
else
|
else
|
||||||
return CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS["WARRIOR"] or RAID_CLASS_COLORS["WARRIOR"]
|
return CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS["WARRIOR"] or RAID_CLASS_COLORS["WARRIOR"]
|
||||||
end
|
end
|
||||||
|
elseif type(class) == "function" then
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
class = class:upper()
|
class = class:upper()
|
||||||
|
Reference in New Issue
Block a user