Fix crash on loading level without a header.

This commit is contained in:
toasterbabe 2017-04-21 23:37:14 +01:00
parent 37fc95ca08
commit 7556b407b2
1 changed files with 3 additions and 0 deletions

View File

@ -3663,6 +3663,9 @@ char *G_BuildMapTitle(INT32 mapnum)
{
char *title = NULL;
if (!mapheaderinfo[mapnum-1])
P_AllocMapHeader(mapnum-1);
if (strcmp(mapheaderinfo[mapnum-1]->lvlttl, ""))
{
size_t len = 1;