mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 05:11:08 +00:00
Fix exitgame-ing a demo crashing the game (resolves #1237)
This commit is contained in:
parent
b6544efceb
commit
4840310f1a
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue