mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 22:05:20 -04:00
fix a crash when gamemap is not initialized
This may happen when leaving a menu during the title screen when the first demos hasn't been loaded yet.
This commit is contained in:
parent
643922d134
commit
95166ee810
@ -514,8 +514,14 @@ void HU_Start(void)
|
||||
|
||||
// initialize the automap's level title widget
|
||||
|
||||
// [FG] fix crash when gamemap is not initialized
|
||||
if (gamestate == GS_LEVEL && gamemap > 0)
|
||||
{
|
||||
s = gamemode != commercial ? HU_TITLE : gamemission == pack_tnt ?
|
||||
HU_TITLET : gamemission == pack_plut ? HU_TITLEP : HU_TITLE2;
|
||||
}
|
||||
else
|
||||
s = "";
|
||||
|
||||
while (*s)
|
||||
HUlib_addCharToTextLine(&w_title, *s++);
|
||||
|
Loading…
x
Reference in New Issue
Block a user