Fixed crash on finishgame CCMD before starting new game

https://forum.zdoom.org/viewtopic.php?t=59045
This commit is contained in:
alexey.lysiuk 2018-01-08 17:16:03 +02:00
parent e8a7f00b9b
commit 6370594e17

View file

@ -510,7 +510,7 @@ public:
crouchdir = 0; crouchdir = 0;
crouching = 0; crouching = 0;
crouchviewdelta = 0; crouchviewdelta = 0;
viewheight = mo->ViewHeight; viewheight = mo ? mo->ViewHeight : 0;
} }
} }