Fix colored mod names leaking into script error message
This commit is contained in:
parent
aa11ddd45d
commit
9cbf364113
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue