Fix #44: Don't crash when changing show apm setting in the main menu
This commit is contained in:
@@ -283,5 +283,5 @@ void ShowStatusBar()
|
||||
|
||||
void CM_RedrawStatusBar() {
|
||||
StatusBarWindow *w = dynamic_cast<StatusBarWindow*>(FindWindowById(WC_STATUS_BAR, 0));
|
||||
w->ReInit();
|
||||
if (w != nullptr) w->ReInit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user