diff options
author | frosch <frosch@openttd.org> | 2014-02-07 23:48:56 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-02-07 23:48:56 +0000 |
commit | 41b7a04a680196dc7d579ca9a88fbe9c8c28f60a (patch) | |
tree | b92a640bf819583d3ac072f8d79e76f48c593040 /src/autoreplace_cmd.cpp | |
parent | 50c6b2486b41e1849feb2c24a2c93342d0a170fe (diff) | |
download | openttd-41b7a04a680196dc7d579ca9a88fbe9c8c28f60a.tar.xz |
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
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 27d6fddcd..2e13caffb 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -160,7 +160,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) Train::From(new_head)->ConsistChanged(true); + if (part_of_chain && new_head->type == VEH_TRAIN) Train::From(new_head)->ConsistChanged(CCF_LOADUNLOAD); } /** |