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(); }