summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-15 18:23:52 +0000
committerrubidium <rubidium@openttd.org>2010-01-15 18:23:52 +0000
commitaaf0b4b46ca2745bb12dad5c228c23446c3203ec (patch)
treeef1d90f676cd9752edb683bff8af3907da4faf19 /src/autoreplace_cmd.cpp
parent55d1db5b2851c5b3357126adb720a4a91038b7dc (diff)
downloadopenttd-aaf0b4b46ca2745bb12dad5c228c23446c3203ec.tar.xz
(svn r18812) -Codechange: make some functions in train.h functions of Train.
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r--src/autoreplace_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp
index 1ba37d470..bb2cf0b02 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -125,7 +125,7 @@ static void TransferCargo(Vehicle *old_veh, Vehicle *new_head, bool part_of_chai
}
/* Update train weight etc., the old vehicle will be sold anyway */
- if (part_of_chain && new_head->type == VEH_TRAIN) TrainConsistChanged(Train::From(new_head), true);
+ if (part_of_chain && new_head->type == VEH_TRAIN) Train::From(new_head)->ConsistChanged(true);
}
/**