summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-03 11:56:29 +0000
committerrubidium <rubidium@openttd.org>2009-09-03 11:56:29 +0000
commitdcf3719ca1de0a3645ded7d893396e866ab97cba (patch)
treefe888cb7be199ff67576f6f07ff551ba6a4c1db7
parent5607a610d7b5ebb93af90d64ee1a8098fb94df06 (diff)
downloadopenttd-dcf3719ca1de0a3645ded7d893396e866ab97cba.tar.xz
(svn r17404) -Change (r17379): silence gcc warning caused by inlining of a virtual function
-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()