summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-03-06 12:42:53 +0000
committerterkhen <terkhen@openttd.org>2010-03-06 12:42:53 +0000
commite4a5a556b4d9d6b74f2fcd2330997abb65a68d3b (patch)
tree2ece3e246a052ad62735eb42d0f98c2e5d360717 /src/vehicle_cmd.cpp
parentf4281020927f0ee63227d8195a3a1479489f970a (diff)
downloadopenttd-e4a5a556b4d9d6b74f2fcd2330997abb65a68d3b.tar.xz
(svn r19338) -Codechange: Move the acceleration cache to GroundVehicle.
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 299981663..f4527696b 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -78,7 +78,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
switch (v->type) {
case VEH_TRAIN:
- if ((v->vehstatus & VS_STOPPED) && Train::From(v)->tcache.cached_power == 0) return_cmd_error(STR_ERROR_TRAIN_START_NO_CATENARY);
+ if ((v->vehstatus & VS_STOPPED) && Train::From(v)->acc_cache.cached_power == 0) return_cmd_error(STR_ERROR_TRAIN_START_NO_CATENARY);
break;
case VEH_SHIP: