diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 6c3471639e..2da68517f2 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1806,7 +1806,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); + } } };