From 6370594e17ddd9fa99b270a88ff67c772da3072d Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 8 Jan 2018 17:16:03 +0200 Subject: [PATCH] Fixed crash on finishgame CCMD before starting new game https://forum.zdoom.org/viewtopic.php?t=59045 --- src/d_player.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_player.h b/src/d_player.h index c8c5b0fc7c..80ac8c8700 100644 --- a/src/d_player.h +++ b/src/d_player.h @@ -510,7 +510,7 @@ public: crouchdir = 0; crouching = 0; crouchviewdelta = 0; - viewheight = mo->ViewHeight; + viewheight = mo ? mo->ViewHeight : 0; } }