Fixes #3: Crash when APM toggled in intro screen

This commit is contained in:
2024-06-04 20:54:54 +01:00
parent 349322cad0
commit c76e897e06

View File

@@ -282,6 +282,11 @@ void ShowStatusBar()
} }
void CM_RedrawStatusBar() { void CM_RedrawStatusBar() {
StatusBarWindow *w = dynamic_cast<StatusBarWindow*>(FindWindowById(WC_STATUS_BAR, 0)); Window *w = FindWindowById(WC_STATUS_BAR, 0);
w->ReInit();
if (w == nullptr) return;
StatusBarWindow *st = static_cast<StatusBarWindow*>(w);
st->ReInit();
} }