mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Fix a dumb typo of luaL_checklstring i made whoops
This commit is contained in:
parent
8d71559afe
commit
d806655769
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ int LUA_CheckGlobals(lua_State *L, const char *word)
|
|||
else if (fastcmp(word, "mapmusname"))
|
||||
{
|
||||
size_t strlength;
|
||||
const char *str = luaL_checkstring(L, 2, &strlength);
|
||||
const char *str = luaL_checklstring(L, 2, &strlength);
|
||||
|
||||
if (strlength > 6)
|
||||
return luaL_error(L, "string length out of range (maximum 6 characters)");
|
||||
|
|
Loading…
Reference in a new issue