summaryrefslogtreecommitdiff
path: root/src/settings.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/settings.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/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 825e3cbca..970c169b4 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -869,7 +869,7 @@ static bool UpdateConsists(int32 p1)
Train *t;
FOR_ALL_TRAINS(t) {
/* Update the consist of all trains so the maximum speed is set correctly. */
- if (t->IsFrontEngine() || t->IsFreeWagon()) t->ConsistChanged(true);
+ if (t->IsFrontEngine() || t->IsFreeWagon()) t->ConsistChanged(CCF_TRACK);
}
InvalidateWindowClassesData(WC_BUILD_VEHICLE, 0);
return true;