Fix crashing at the end of netreplays

This commit is contained in:
fickleheart 2019-01-27 19:09:29 -06:00
parent c6248faa30
commit 49caebd2db
1 changed files with 7 additions and 0 deletions

View File

@ -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)