Fix crash on loading level without a header.
This commit is contained in:
parent
37fc95ca08
commit
7556b407b2
|
@ -3663,6 +3663,9 @@ char *G_BuildMapTitle(INT32 mapnum)
|
||||||
{
|
{
|
||||||
char *title = NULL;
|
char *title = NULL;
|
||||||
|
|
||||||
|
if (!mapheaderinfo[mapnum-1])
|
||||||
|
P_AllocMapHeader(mapnum-1);
|
||||||
|
|
||||||
if (strcmp(mapheaderinfo[mapnum-1]->lvlttl, ""))
|
if (strcmp(mapheaderinfo[mapnum-1]->lvlttl, ""))
|
||||||
{
|
{
|
||||||
size_t len = 1;
|
size_t len = 1;
|
||||||
|
|
Loading…
Reference in a new issue