(svn r17404) -Change (r17379): silence gcc warning caused by inlining of a virtual function
author |
rubidium <rubidium@openttd.org> |
date |
Thu, 03 Sep 2009 11:56:29 +0000 |
parents |
6c10aa6a3232 |
children |
ad412abde7fc |
files |
src/company_cmd.cpp src/graph_gui.cpp |
diffstat |
2 files changed, 2 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -57,7 +57,7 @@
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()
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -1074,7 +1074,7 @@
this->UpdateCompanyStats();
this->InitNested(desc, window_number);
- this->OnInvalidateData(-1);
+ this->OnInvalidateData(INVALID_COMPANY);
}
void UpdateCompanyStats()