diff --git a/src/d_netcmd.c b/src/d_netcmd.c index fbb7842c9..1798249bf 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4101,7 +4101,7 @@ static void Command_RandomMap(void) newgametype = cv_newgametype.value; newencoremode = false; newresetplayers = true; - oldmapnum = -1; + oldmapnum = NEXTMAP_INVALID; } newmapnum = G_RandMap(G_TOLFlag(newgametype), oldmapnum, 0, 0, NULL) + 1;