1
0
Fork 0

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

pull/12765/head
Peter Nelson 2024-06-07 21:10:37 +01:00
parent 79b573704b
commit 82c6ec505b
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 3 additions and 1 deletions

View File

@ -1402,7 +1402,9 @@ struct PerformanceRatingDetailWindow : Window {
} }
/* Make sure the widget is lowered */ /* 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);
}
} }
}; };