summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-14 17:04:01 +0000
committerrubidium <rubidium@openttd.org>2013-02-14 17:04:01 +0000
commitc77cd1f409698a5c3c0dc89f2cd1930b20b90554 (patch)
treed73eefa6aae84ccaec5d3657a03c692e4f5b2cac /src/vehicle.cpp
parent328ed1cf94a5a18fad75ae7057202b5c05138765 (diff)
downloadopenttd-c77cd1f409698a5c3c0dc89f2cd1930b20b90554.tar.xz
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index c09650410..6c542b91e 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -112,8 +112,8 @@ bool Vehicle::NeedsServicing() const
/* Are we ready for the next service cycle? */
const Company *c = Company::Get(this->owner);
if (c->settings.vehicle.servint_ispercent ?
- (this->reliability >= this->GetEngine()->reliability * (100 - this->service_interval) / 100) :
- (this->date_of_last_service + this->service_interval >= _date)) {
+ (this->reliability >= this->GetEngine()->reliability * (100 - this->GetServiceInterval()) / 100) :
+ (this->date_of_last_service + this->GetServiceInterval() >= _date)) {
return false;
}