Skip to content
Snippets Groups Projects
Commit 31520a1a authored by Radicalicious's avatar Radicalicious
Browse files

Revert usage warning to an error

parent 1edbbad2
Branches
No related tags found
No related merge requests found
...@@ -441,7 +441,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word) ...@@ -441,7 +441,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
const char *str = luaL_checklstring(L, 2, &strlength); const char *str = luaL_checklstring(L, 2, &strlength);
if (strlength > 6) 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) if (strlen(str) < strlength)
return luaL_error(L, "string must not contain embedded zeros!"); return luaL_error(L, "string must not contain embedded zeros!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment