mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-10-01 17:34:15 -04:00
fix a potential crash in the demo reel
This commit is contained in:
parent
28f0d25c3f
commit
3ca81eb4b9
@ -543,7 +543,7 @@ void D_DoAdvanceDemo(void)
|
|||||||
demosequence = 0;
|
demosequence = 0;
|
||||||
// [FG] the BFG Edition IWADs have no TITLEPIC lump, use DMENUPIC instead
|
// [FG] the BFG Edition IWADs have no TITLEPIC lump, use DMENUPIC instead
|
||||||
name = demostates[demosequence][gamemode].name;
|
name = demostates[demosequence][gamemode].name;
|
||||||
if (!strcasecmp(name, "TITLEPIC") && W_CheckNumForName(name) < 0)
|
if (name && !strcasecmp(name, "TITLEPIC") && W_CheckNumForName(name) < 0)
|
||||||
{
|
{
|
||||||
name = "DMENUPIC";
|
name = "DMENUPIC";
|
||||||
if (W_CheckNumForName(name) < 0)
|
if (W_CheckNumForName(name) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user