summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-07 23:48:56 +0000
committerfrosch <frosch@openttd.org>2014-02-07 23:48:56 +0000
commit41b7a04a680196dc7d579ca9a88fbe9c8c28f60a (patch)
treeb92a640bf819583d3ac072f8d79e76f48c593040 /src/autoreplace_cmd.cpp
parent50c6b2486b41e1849feb2c24a2c93342d0a170fe (diff)
downloadopenttd-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.cpp2
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);
}
/**