summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-07 23:48:56 +0000
committerfrosch <frosch@openttd.org>2014-02-07 23:48:56 +0000
commit41b7a04a680196dc7d579ca9a88fbe9c8c28f60a (patch)
treeb92a640bf819583d3ac072f8d79e76f48c593040 /src/vehicle_cmd.cpp
parent50c6b2486b41e1849feb2c24a2c93342d0a170fe (diff)
downloadopenttd-41b7a04a680196dc7d579ca9a88fbe9c8c28f60a.tar.xz
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
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 f45bd4b5a..78c62d20a 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -463,7 +463,7 @@ CommandCost CmdRefitVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
/* Update the cached variables */
switch (v->type) {
case VEH_TRAIN:
- Train::From(front)->ConsistChanged(auto_refit);
+ Train::From(front)->ConsistChanged(auto_refit ? CCF_AUTOREFIT : CCF_REFIT);
break;
case VEH_ROAD:
RoadVehUpdateCache(RoadVehicle::From(front), auto_refit);