From 18fdd8fa9ac6ab935344da6720fc7dd29362f33e 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.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 3b001a0dd..925d2c852 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -986,12 +986,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;