summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-03-06 16:26:09 +0000
committerfrosch <frosch@openttd.org>2010-03-06 16:26:09 +0000
commitef477b7dd78432bd2417d2526c5bc987ff7d3a39 (patch)
tree32f959186133e5372d37c0f4bcce45813c084ef3 /src/company_cmd.cpp
parentbcb01903cdca4232eb2dd5ace0c002fefd2e336b (diff)
downloadopenttd-ef477b7dd78432bd2417d2526c5bc987ff7d3a39.tar.xz
(svn r19358) -Fix [FS#3663]: Close error messages about missing ownership when the company closes or is taken over. (parts by Alberth).
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 5e7d4ed41..29343a09b 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -78,6 +78,8 @@ void Company::PostDestructor(size_t index)
InvalidateWindowData(WC_GRAPH_LEGEND, 0, (int)index);
InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, (int)index);
InvalidateWindowData(WC_COMPANY_LEAGUE, 0, 0);
+ /* If the currently shown error message has this company in it, the close it. */
+ InvalidateWindowData(WC_ERRMSG, 0);
}
/**