Fixes #3: Crash when APM toggled in intro screen
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user