Fix colored mod names leaking into script error message

This commit is contained in:
Agent X 2024-04-28 09:37:21 -04:00
parent aa11ddd45d
commit 9cbf364113

View file

@ -22,7 +22,7 @@ void smlua_mod_error(void) {
if (mod == NULL) { mod = gLuaLastHookMod; }
if (mod == NULL) { return; }
char txt[255] = { 0 };
snprintf(txt, 254, "'%s' has script errors!", mod->name);
snprintf(txt, 254, "'%s\\#ff0000\\' has script errors!", mod->name);
djui_lua_error(txt);
}