- added a nullptr check for StatusBar when drawing „Paused“

It looks like some edge cases can trigger this.
This commit is contained in:
Christoph Oelckers 2022-04-12 00:37:15 +02:00
parent c4408d8536
commit 7c2d315479

View file

@ -1039,7 +1039,7 @@ void D_Display ()
CT_Drawer ();
// draw pause pic
if ((paused || pauseext) && menuactive == MENU_Off)
if ((paused || pauseext) && menuactive == MENU_Off && StatusBar != nullptr)
{
// [MK] optionally let the status bar handle this
bool skip = false;