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