Commit 70b62d3d authored by Thomas Kolb's avatar Thomas Kolb
Browse files

Prevent crash on colors == nil

parent 8f34895d
......@@ -13,6 +13,10 @@ LuaSelfInfo::LuaSelfInfo(Bot &bot, guid_t aId)
void LuaSelfInfo::setColorTable(sol::table v)
{
if(v == sol::nil) {
return;
}
m_colorTable = v;
m_cachedColors.clear();
for (auto kvp: v)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment