summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/company_cmd.cpp2
-rw-r--r--src/graph_gui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 5d514d06a..e85caca4c 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -57,7 +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);
+ InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, INVALID_COMPANY);
}
Company::~Company()
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 511f60fd1..0bd219d7b 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -1074,7 +1074,7 @@ struct PerformanceRatingDetailWindow : Window {
this->UpdateCompanyStats();
this->InitNested(desc, window_number);
- this->OnInvalidateData(-1);
+ this->OnInvalidateData(INVALID_COMPANY);
}
void UpdateCompanyStats()