From 9cbf364113717aa94fc70738dd0ce966e1b735f4 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sun, 28 Apr 2024 09:37:21 -0400 Subject: [PATCH] Fix colored mod names leaking into script error message --- src/pc/lua/smlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/lua/smlua.c b/src/pc/lua/smlua.c index 0d1e535f..564f18b2 100644 --- a/src/pc/lua/smlua.c +++ b/src/pc/lua/smlua.c @@ -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); }