mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 21:31:46 +00:00
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:
commit
02ee3382da
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue