Skip to content
Snippets Groups Projects
Commit 02ee3382 authored by sphere's avatar sphere
Browse files

Merge branch 'demolition' into 'next'

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

Closes #1237

See merge request STJr/SRB2!2419
parents 432c0eaf 4840310f
Branches
No related tags found
No related merge requests found
...@@ -551,6 +551,9 @@ void G_ConsGhostTic(void) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment