diff options
author | rubidium <rubidium@openttd.org> | 2013-02-04 20:29:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-04 20:29:38 +0000 |
commit | 99a08e1e8cec3d73bf802e64b9e460e71f47cb43 (patch) | |
tree | be103dfa43a828c12444678bce7fe67c679b372f /src/settings.cpp | |
parent | 26adb854e05d781f05f29c4584c5c58d92461cce (diff) | |
download | openttd-99a08e1e8cec3d73bf802e64b9e460e71f47cb43.tar.xz |
(svn r24968) -Fix [FS#5379]: company window was not updated when shared were enabled/disabled
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index c871688d3..9ca7cb094 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1038,6 +1038,17 @@ static bool InvalidateCompanyInfrastructureWindow(int32 p1) return true; } +/** + * Invalidate the company details window after the shares setting changed. + * @param p1 Unused. + * @return Always true. + */ +static bool InvalidateCompanyWindow(int32 p1) +{ + InvalidateWindowClassesData(WC_COMPANY); + return true; +} + /** Checks if any settings are set to incorrect values, and sets them to correct values in that case. */ static void ValidateSettings() { |