summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2014-03-18 20:53:34 +0000
committerplanetmaker <planetmaker@openttd.org>2014-03-18 20:53:34 +0000
commit3dd1a6ad2d326ba1c98a11074ec270fda401db9a (patch)
tree255a8ea57cb64844ae69594b63bdafe62dda8558 /src
parent28b078d2a72f88179edd2e50af72f9c507bcfa4c (diff)
downloadopenttd-3dd1a6ad2d326ba1c98a11074ec270fda401db9a.tar.xz
(svn r26416) -Fix [FS#5947]: Shares button state was not appropriately updated when switching setting or company (frosch)
Diffstat (limited to 'src')
-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 1cf38fc52..bbbf0950b 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -2013,7 +2013,7 @@ struct CompanyWindow : Window
NWidgetStacked *wi = this->GetWidget<NWidgetStacked>(WID_C_SELECT_BUTTONS);
if (plane != wi->shown_plane) {
wi->SetDisplayedPlane(plane);
- this->SetDirty();
+ this->InvalidateData();
return;
}