Commit d8066557 by GoldenTails

Fix a dumb typo of luaL_checklstring i made whoops

parent 8d71559a
......@@ -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)");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment