mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 20:41:25 +00:00
Revert usage warning to an error
This commit is contained in:
parent
1edbbad2df
commit
31520a1a5d
1 changed files with 1 additions and 1 deletions
|
@ -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!");
|
||||
|
|
Loading…
Reference in a new issue