diff options
author | alberth <alberth@openttd.org> | 2009-11-22 13:22:53 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-11-22 13:22:53 +0000 |
commit | bf93372ca26375e392ff62a91db4de4c126dff38 (patch) | |
tree | b09443cc8800ee93a79bb1df23f79283e8ddebbf /src/company_gui.cpp | |
parent | 2332034822a9e2c9b1ed58e7f243a48cb8d630a6 (diff) | |
download | openttd-bf93372ca26375e392ff62a91db4de4c126dff38.tar.xz |
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 2 |
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; |