Repair D_StartTitle component of netgame title fallthrough prevention

This commit is contained in:
toaster 2022-09-21 19:22:05 +01:00
parent 0a48165d3a
commit fc9697b2e1

View file

@ -943,12 +943,12 @@ void D_StartTitle(void)
if (server) if (server)
{ {
INT16 mapnum = G_GetFirstMapOfGametype(gametype)+1; i = G_GetFirstMapOfGametype(gametype)+1;
if (i > nummapheaders) if (i > nummapheaders)
I_Error("D_StartTitle: No valid map ID found!?"); I_Error("D_StartTitle: No valid map ID found!?");
COM_BufAddText(va("map %s\n", G_BuildMapName(mapnum))); COM_BufAddText(va("map %s\n", G_BuildMapName(i)));
} }
return; return;