diff options
author | rubidium <rubidium@openttd.org> | 2010-01-15 18:23:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-15 18:23:52 +0000 |
commit | aaf0b4b46ca2745bb12dad5c228c23446c3203ec (patch) | |
tree | ef1d90f676cd9752edb683bff8af3907da4faf19 /src/autoreplace_cmd.cpp | |
parent | 55d1db5b2851c5b3357126adb720a4a91038b7dc (diff) | |
download | openttd-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.cpp | 2 |
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); } /** |