mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -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
|
||||
return CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS["WARRIOR"] or RAID_CLASS_COLORS["WARRIOR"]
|
||||
end
|
||||
elseif type(class) == "function" then
|
||||
return
|
||||
end
|
||||
|
||||
class = class:upper()
|
||||
|
Reference in New Issue
Block a user