From d8066557693e6446da1d31a11aed921ddd2d1afe Mon Sep 17 00:00:00 2001 From: GoldenTails Date: Mon, 23 Nov 2020 21:20:17 -0600 Subject: [PATCH] Fix a dumb typo of luaL_checklstring i made whoops --- 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 160746e9e..14619a220 100644 --- a/src/lua_script.c +++ b/src/lua_script.c @@ -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)");