summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
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);
}
/**