summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-09 16:38:50 +0000
committerfrosch <frosch@openttd.org>2011-11-09 16:38:50 +0000
commit026317bb444c1165ba96904f8e5a300b1a657539 (patch)
tree103adbbc8acf8129b9b1d030304950f06d9a6a8b /src/roadveh_cmd.cpp
parente4011426f2a4ae1ccbbced0cc45d22bce2502fe9 (diff)
downloadopenttd-026317bb444c1165ba96904f8e5a300b1a657539.tar.xz
(svn r23173) -Codechange: Rename GetVehicleCapacity() to Engine::DetermineCapacity().
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 3fe5ce84e..ff18089a5 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -290,7 +290,7 @@ CommandCost CmdBuildRoadVehicle(TileIndex tile, DoCommandFlag flags, const Engin
/* Call various callbacks after the whole consist has been constructed */
for (RoadVehicle *u = v; u != NULL; u = u->Next()) {
- u->cargo_cap = GetVehicleCapacity(u);
+ u->cargo_cap = u->GetEngine()->DetermineCapacity(u);
v->InvalidateNewGRFCache();
u->InvalidateNewGRFCache();
}