F_StartTitleScreen: Make sure the level header for gamemap always exists

This commit is contained in:
MascaraSnake 2023-04-11 18:48:23 +02:00
parent 3c81938496
commit 846cf71e6a

View file

@ -2503,6 +2503,8 @@ void F_StartTitleScreen(void)
{
titlemapinaction = TITLEMAP_OFF;
gamemap = 1; // g_game.c
if (!mapheaderinfo[gamemap-1])
P_AllocMapHeader(gamemap-1);
CON_ClearHUD();
}