- fixed crash after change level failure

https://forum.zdoom.org/viewtopic.php?t=72890
This commit is contained in:
alexey.lysiuk 2021-08-06 15:02:00 +03:00
parent a067466dd8
commit dcfd72c766

View file

@ -1014,7 +1014,7 @@ bool G_Responder (event_t *ev)
{ {
if (ST_Responder (ev)) if (ST_Responder (ev))
return true; // status window ate it return true; // status window ate it
if (!viewactive && primaryLevel->automap->Responder (ev, false)) if (!viewactive && primaryLevel->automap && primaryLevel->automap->Responder (ev, false))
return true; // automap ate it return true; // automap ate it
} }
else if (gamestate == GS_FINALE) else if (gamestate == GS_FINALE)