Fix crashing at the end of netreplays
This commit is contained in:
parent
c6248faa30
commit
49caebd2db
|
@ -4614,6 +4614,13 @@ void G_ReadDemoExtraData(void)
|
|||
|
||||
p = READUINT8(demo_p);
|
||||
}
|
||||
|
||||
if (!(demoflags & DF_GHOST) && *demo_p == DEMOMARKER)
|
||||
{
|
||||
// end of demo data stream
|
||||
G_CheckDemoStatus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void G_WriteDemoExtraData(void)
|
||||
|
|
Loading…
Reference in New Issue