From 31520a1a5da2be5d91f2227ea4780916ba2a0ebc Mon Sep 17 00:00:00 2001 From: Radicalicious <sonic_edge@hfcom.org> Date: Tue, 22 Nov 2022 16:21:13 +0000 Subject: [PATCH] Revert usage warning to an error --- src/lua_script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_script.c b/src/lua_script.c index 50f3930314..ea7e7d348c 100644 --- a/src/lua_script.c +++ b/src/lua_script.c @@ -441,7 +441,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word) const char *str = luaL_checklstring(L, 2, &strlength); if (strlength > 6) - LUA_UsageWarning(L, "mapmusname: Music name too long - truncated to six characters."); + return luaL_error(L, "string length out of range (maximum 6 characters)"); if (strlen(str) < strlength) return luaL_error(L, "string must not contain embedded zeros!"); -- GitLab