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

This commit is contained in:
pastel 2024-06-03 14:47:27 +00:00 committed by sphere
parent b6544efceb
commit 4840310f1a

View file

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