Fix: crash when APM toggled in intro screen

This commit is contained in:
2024-06-04 20:54:54 +01:00
committed by chucky-n-ice
parent c2dbe3923e
commit 740b6a4c4e

View File

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