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

master
Peter Nelson 4 weeks ago committed by GitHub
parent 79b573704b
commit df1b6a933b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save