From 7c2d315479453f35751694d02803e7a9c01423cf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Apr 2022 00:37:15 +0200 Subject: [PATCH] =?UTF-8?q?-=20added=20a=20nullptr=20check=20for=20StatusB?= =?UTF-8?q?ar=20when=20drawing=20=E2=80=9EPaused=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It looks like some edge cases can trigger this. --- src/d_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index e328a4c8b8..7230128383 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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;