Merge branch 'exitvars-fix' into 'next'

Fix lua_pop -> lua_remove use in G_SetCustomExitVars lua

See merge request STJr/SRB2!404
This commit is contained in:
Digiku 2018-12-20 10:58:27 -05:00
commit 1e15f2365d

View file

@ -1934,7 +1934,7 @@ static int lib_gSetCustomExitVars(lua_State *L)
if (lua_isnumber(L, 1) || n >= 2)
{
nextmapoverride = (INT16)luaL_checknumber(L, 1);
lua_pop(L, 1); // pop nextmapoverride; skipstats now 1 if available
lua_remove(L, 1); // remove nextmapoverride; skipstats now 1 if available
}
skipstats = lua_optboolean(L, 1);
}