- fixed crash when VM exception is raised during entering a level

This commit is contained in:
alexey.lysiuk 2019-05-11 11:28:06 +03:00 committed by Rachael Alexanderson
parent 97045ae8b2
commit 98c88d2b92

View file

@ -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 ||