diff options
author | frosch <frosch@openttd.org> | 2014-02-07 23:48:56 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-02-07 23:48:56 +0000 |
commit | 41b7a04a680196dc7d579ca9a88fbe9c8c28f60a (patch) | |
tree | b92a640bf819583d3ac072f8d79e76f48c593040 /src/openttd.cpp | |
parent | 50c6b2486b41e1849feb2c24a2c93342d0a170fe (diff) | |
download | openttd-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/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 7a3f84eea..6092805eb 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1276,7 +1276,7 @@ static void CheckCaches() } switch (v->type) { - case VEH_TRAIN: Train::From(v)->ConsistChanged(true); break; + case VEH_TRAIN: Train::From(v)->ConsistChanged(CCF_TRACK); break; case VEH_ROAD: RoadVehUpdateCache(RoadVehicle::From(v)); break; case VEH_AIRCRAFT: UpdateAircraftCache(Aircraft::From(v)); break; case VEH_SHIP: Ship::From(v)->UpdateCache(); break; |