Merge branch 'demolition' into 'next'

Fix exitgame-ing a demo crashing the game (resolves #1237)

Closes #1237

See merge request STJr/SRB2!2419
This commit is contained in:
sphere 2024-06-03 14:47:28 +00:00
commit 02ee3382da

View file

@ -551,6 +551,9 @@ void G_ConsGhostTic(void)
testmo = players[0].mo; testmo = players[0].mo;
if (P_MobjWasRemoved(testmo))
return; // No valid mobj exists, probably because of unexpected quit
// Grab ghost data. // Grab ghost data.
ziptic = READUINT8(demo_p); ziptic = READUINT8(demo_p);
if (ziptic & GZT_XYZ) if (ziptic & GZT_XYZ)