mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-07 12:23:01 +00:00
fix: add proper safe checks for ded server not having colour table
This commit is contained in:
parent
78e28493f5
commit
868468bf08
|
|
@ -362,5 +362,8 @@ void ColourTable::setColour(const wstring &colourName, const wstring &value)
|
|||
|
||||
unsigned int ColourTable::getColour(eMinecraftColour id)
|
||||
{
|
||||
if (m_colourValues == NULL)
|
||||
return 0xFFFFFF;
|
||||
|
||||
return m_colourValues[(int)id];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue