summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
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/rail_cmd.cpp
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/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 49a58fe6d..1b60bfc6e 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1658,7 +1658,7 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
if (flags & DC_EXEC) {
/* Railtype changed, update trains as when entering different track */
for (Train **v = affected_trains.Begin(); v != affected_trains.End(); v++) {
- (*v)->RailtypeChanged();
+ (*v)->ConsistChanged(true);
}
}