diff options
author | michi_cc <michi_cc@openttd.org> | 2012-01-08 12:47:54 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-01-08 12:47:54 +0000 |
commit | 9232a2ef0c12efc6cd10f03487096c6dbf8727d3 (patch) | |
tree | 8f748b5632e8c76d3785eb000b9dbd451fa26e09 /src/saveload | |
parent | 7e78d15e58ae21e98fe6dfc515d05fb4c2f4c775 (diff) | |
download | openttd-9232a2ef0c12efc6cd10f03487096c6dbf8727d3.tar.xz |
(svn r23773) -Change: [NewGRF] Update all cached train properties if a train vehicle enters a new railtype.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 7c04448db..6087c347f 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -530,6 +530,9 @@ void FixupTrainLengths() } } } + + /* Update all cached properties after moving the vehicle chain around. */ + Train::From(v)->ConsistChanged(true); } } } |