mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-dumb-checkstring-typo' into 'next'
Fix a dumb typo of luaL_checklstring i made whoops See merge request STJr/SRB2!1266
This commit is contained in:
commit
df6a742547
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…
Add table
Reference in a new issue