From 2782a0b73239c895c4c365d42b8959b3a7f54e28 Mon Sep 17 00:00:00 2001 From: dP Date: Sun, 19 Oct 2025 21:40:20 +0500 Subject: [PATCH] Fix #44: Don't crash when changing show apm setting in the main menu --- src/statusbar_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index 07b6cc9aee..3680febf1c 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -283,5 +283,5 @@ void ShowStatusBar() void CM_RedrawStatusBar() { StatusBarWindow *w = dynamic_cast(FindWindowById(WC_STATUS_BAR, 0)); - w->ReInit(); + if (w != nullptr) w->ReInit(); }