mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Merge branch 'ensure-map-title-level-header' into 'next'
Allocate non-existent level header for G_BuildMapTitle See merge request KartKrew/Kart-Public!252
This commit is contained in:
commit
24c234f968
1 changed files with 3 additions and 0 deletions
|
@ -4714,6 +4714,9 @@ char *G_BuildMapTitle(INT32 mapnum)
|
||||||
if (mapnum == 0)
|
if (mapnum == 0)
|
||||||
return Z_StrDup("Random");
|
return Z_StrDup("Random");
|
||||||
|
|
||||||
|
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