From f17493f379c5f53e75f7c8983c4b8425462ccb73 Mon Sep 17 00:00:00 2001 From: Lactozilla Date: Mon, 7 Aug 2023 14:30:39 -0300 Subject: [PATCH] Use -1 as the default, not 0 --- src/lua_baselib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_baselib.c b/src/lua_baselib.c index a03ede8ca..4af5066ae 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -3849,7 +3849,7 @@ static int lib_gSetCustomExitVars(lua_State *L) { nextmapoverride = (INT16)luaL_optinteger(L, 1, 0); skipstats = (INT16)luaL_optinteger(L, 2, 0); - nextgametype = (INT16)luaL_optinteger(L, 3, 0); + nextgametype = (INT16)luaL_optinteger(L, 3, -1); } return 0;