- 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:
Parnic
2010-04-21 14:09:43 +00:00
parent 3d97a1a8ac
commit 5e326b68c6

View File

@ -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()