mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Fix crash on loading level without a header.
(cherry picked from commit 7556b407b247a9bfb9420781b8fa1ac4facce07d)
This commit is contained in:
parent
ffec5f632b
commit
3be489f6dd
1 changed files with 3 additions and 0 deletions
|
@ -4714,6 +4714,9 @@ char *G_BuildMapTitle(INT32 mapnum)
|
|||
if (mapnum == 0)
|
||||
return Z_StrDup("Random");
|
||||
|
||||
if (!mapheaderinfo[mapnum-1])
|
||||
P_AllocMapHeader(mapnum-1);
|
||||
|
||||
if (strcmp(mapheaderinfo[mapnum-1]->lvlttl, ""))
|
||||
{
|
||||
size_t len = 1;
|
||||
|
|
Loading…
Reference in a new issue