From 51d30140f96812774d02aa325714d57c88eac3fb Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Tue, 22 Jun 2021 13:36:18 +0700 Subject: [PATCH] umapinfo: map entries without a 'levelname' field fall back to the default map title (#226) --- Source/hu_stuff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/hu_stuff.c b/Source/hu_stuff.c index 7b7a0444..1e71b2ef 100644 --- a/Source/hu_stuff.c +++ b/Source/hu_stuff.c @@ -530,7 +530,7 @@ void HU_Start(void) hu_msgbg, &message_list_on); // killough 11/98 // initialize the automap's level title widget - if (gamemapinfo) + if (gamemapinfo && gamemapinfo->levelname) { if (gamemapinfo->label) s = gamemapinfo->label; @@ -546,7 +546,6 @@ void HU_Start(void) HUlib_addCharToTextLine(&w_title, ' '); } s = gamemapinfo->levelname; - if (!s) s = "Unnamed"; } else // [FG] fix crash when gamemap is not initialized