mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fix ub
This commit is contained in:
parent
7d6ad9fca5
commit
ff685ac1e0
|
@ -46,7 +46,7 @@ ColorHSLA CConsole::CResult::GetColor(unsigned Index, bool Light)
|
|||
const char *pStr = m_apArgs[Index];
|
||||
if(str_isallnum(pStr) || ((pStr[0] == '-' || pStr[0] == '+') && str_isallnum(pStr+1))) // Teeworlds Color (Packed HSL)
|
||||
{
|
||||
hsl = ColorHSLA(str_toint(pStr), true);
|
||||
hsl = ColorHSLA(str_toulong_base(pStr, 10), true);
|
||||
}
|
||||
else if(*pStr == '$') // Hex RGB
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue