fix: add proper safe checks for ded server not having colour table

This commit is contained in:
NOTPIES 2026-03-16 18:22:56 -03:00
parent 78e28493f5
commit 868468bf08

View file

@ -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];
}