Fix #12764: Crash when opening Detailed performance rating window with no companies. (#12765)

pull/741/head
Peter Nelson 4 months ago committed by GitHub
parent 79b573704b
commit df1b6a933b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1402,8 +1402,10 @@ struct PerformanceRatingDetailWindow : Window {
} }
/* Make sure the widget is lowered */ /* Make sure the widget is lowered */
if (this->company != INVALID_COMPANY) {
this->LowerWidget(WID_PRD_COMPANY_FIRST + this->company); this->LowerWidget(WID_PRD_COMPANY_FIRST + this->company);
} }
}
}; };
CompanyID PerformanceRatingDetailWindow::company = INVALID_COMPANY; CompanyID PerformanceRatingDetailWindow::company = INVALID_COMPANY;

Loading…
Cancel
Save