From 16fe0f3902c7f755fc709b5631d559a5e22ced3d Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 11 May 2019 11:28:06 +0300 Subject: [PATCH] - fixed crash when VM exception is raised during entering a level --- src/g_game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index b0e7c9bd6a..3e040df569 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -994,7 +994,7 @@ bool G_Responder (event_t *ev) // [RH] If the view is active, give the automap a chance at // the events *last* so that any bound keys get precedence. - if (gamestate == GS_LEVEL && viewactive) + if (gamestate == GS_LEVEL && viewactive && primaryLevel->automap) return primaryLevel->automap->Responder (ev, true); return (ev->type == EV_KeyDown ||