mirror of https://github.com/OpenTTD/OpenTTD
Fix #12764: Crash when opening Detailed performance rating window with no companies.
parent
79b573704b
commit
82c6ec505b
|
@ -1402,8 +1402,10 @@ struct PerformanceRatingDetailWindow : Window {
|
|||
}
|
||||
|
||||
/* Make sure the widget is lowered */
|
||||
if (this->company != INVALID_COMPANY) {
|
||||
this->LowerWidget(WID_PRD_COMPANY_FIRST + this->company);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
CompanyID PerformanceRatingDetailWindow::company = INVALID_COMPANY;
|
||||
|
|
Loading…
Reference in New Issue