diff --git a/src/g_demo.c b/src/g_demo.c index 8d3e35635..cfa34fc7e 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -551,6 +551,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)