summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-02 13:24:36 +0000
committerrubidium <rubidium@openttd.org>2009-09-02 13:24:36 +0000
commitefff51744907ac228e5c214ee6c9a615d6f9f231 (patch)
tree889e7aaed5c1fb28d2fdce7547a4647a0048ad47 /src/company_cmd.cpp
parent05433adb6d09f0514b983e631e3a8b334c6f1957 (diff)
downloadopenttd-efff51744907ac228e5c214ee6c9a615d6f9f231.tar.xz
(svn r17379) -Codechange: make the performance rating window nested, although it still needs some improvements
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 f47072562..5d514d06a 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -57,6 +57,7 @@ Company::Company(uint16 name_1, bool is_ai) :
is_ai(is_ai)
{
for (uint j = 0; j < 4; j++) this->share_owners[j] = COMPANY_SPECTATOR;
+ InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, -1);
}
Company::~Company()
@@ -69,6 +70,7 @@ Company::~Company()
DeleteCompanyWindows(this->index);
InvalidateWindowData(WC_GRAPH_LEGEND, 0, this->index);
+ InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, this->index);
}
/**