diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 10d7e1c495..e705e3749a 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -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); + } } };