summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.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_cmd.cpp
parent328ed1cf94a5a18fad75ae7057202b5c05138765 (diff)
downloadopenttd-c77cd1f409698a5c3c0dc89f2cd1930b20b90554.tar.xz
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r--src/vehicle_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index f0a0428dd..be17c575e 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -1046,7 +1046,7 @@ CommandCost CmdChangeServiceInt(TileIndex tile, DoCommandFlag flags, uint32 p1,
if (serv_int != p2) return CMD_ERROR;
if (flags & DC_EXEC) {
- v->service_interval = serv_int;
+ v->SetServiceInterval(serv_int);
SetWindowDirty(WC_VEHICLE_DETAILS, v->index);
}