From fc9697b2e1796a71e8e81774c8160cc5f24fbac6 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 21 Sep 2022 19:22:05 +0100 Subject: [PATCH] Repair D_StartTitle component of netgame title fallthrough prevention --- src/d_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 87057a22f..5b1b00a70 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -943,12 +943,12 @@ void D_StartTitle(void) if (server) { - INT16 mapnum = G_GetFirstMapOfGametype(gametype)+1; + i = G_GetFirstMapOfGametype(gametype)+1; if (i > nummapheaders) 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;