summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-01-08 12:47:54 +0000
committermichi_cc <michi_cc@openttd.org>2012-01-08 12:47:54 +0000
commit9232a2ef0c12efc6cd10f03487096c6dbf8727d3 (patch)
tree8f748b5632e8c76d3785eb000b9dbd451fa26e09 /src/saveload
parent7e78d15e58ae21e98fe6dfc515d05fb4c2f4c775 (diff)
downloadopenttd-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.cpp3
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);
}
}
}