summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 0100e2ec1..7e5b5f57c 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -413,7 +413,7 @@ struct CompanyFinancesWindow : Window {
if (!small) {
/* Check that the expenses panel height matches the height needed for the layout. */
int type = _settings_client.gui.expenses_layout;
- if (_expenses_list_types[type].GetHeight() != this->GetWidget<NWidgetCore>(CFW_EXPS_CATEGORY)->current_y) {
+ if (_expenses_list_types[type].GetHeight() != this->GetWidget<NWidgetBase>(CFW_EXPS_CATEGORY)->current_y) {
this->SetupWidgets();
this->ReInit();
return;