Skip to content
Permalink
Browse files

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

  • Loading branch information...
alexey-lysiuk authored and madame-rachelle committed May 11, 2019
1 parent 97045ae commit 98c88d2b9281b5bae64bb82244c49b1213ca38a0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ||

0 comments on commit 98c88d2

Please sign in to comment.
You can’t perform that action at this time.