Read splits in G_DoPlayDemoEx (crash fix)

This commit is contained in:
Antonio Martinez 2025-08-07 04:53:24 -04:00
parent 5703fb2a0b
commit 848c3d4f7a

View file

@ -3161,6 +3161,10 @@ void G_DoPlayDemoEx(const char *defdemoname, lumpnum_t deflumpnum)
demobuf.p += 4; // Extrainfo location
demobuf.p += 4; // Attack start
for (i = 0; i < MAXSPLITS; i++)
{
demobuf.p += 4; // Splits
}
// ...*map* not loaded?
if (!gamemap || (gamemap > nummapheaders) || !mapheaderinfo[gamemap-1] || mapheaderinfo[gamemap-1]->lumpnum == LUMPERROR)