Use -1 as the default, not 0

This commit is contained in:
Lactozilla 2023-08-07 14:30:39 -03:00
parent b92dc42848
commit f17493f379

View file

@ -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;