1 Commits

Author SHA1 Message Date
c76e897e06 Fixes #3: Crash when APM toggled in intro screen 2024-06-04 20:54:54 +01:00

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