summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-10-05 18:42:59 +0000
committerfrosch <frosch@openttd.org>2008-10-05 18:42:59 +0000
commite9347b39e5dcae7d03bf6f3a83eeed84d46badcc (patch)
treeb3e5523c08005af6b307f9a83a52ce225ad3ebb8 /src
parent65abc7b161e38d24718f56171e3a2b784f73ca61 (diff)
downloadopenttd-e9347b39e5dcae7d03bf6f3a83eeed84d46badcc.tar.xz
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
Diffstat (limited to 'src')
-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 98b327935..24ec80dbd 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -105,7 +105,7 @@ static void TransferCargo(Vehicle *old_veh, Vehicle *new_head, bool part_of_chai
/* Find free space in the new chain */
for (Vehicle *dest = new_head; dest != NULL && src->cargo.Count() > 0; dest = dest->Next()) {
- if (!part_of_chain && dest->type == VEH_TRAIN && dest != new_head && dest != new_head->u.rail.other_multiheaded_part && !IsArticulatedPart(src)) {
+ if (!part_of_chain && dest->type == VEH_TRAIN && dest != new_head && dest != new_head->u.rail.other_multiheaded_part && !IsArticulatedPart(dest)) {
/* Skip vehicles, which do not belong to new_head */
dest = GetLastEnginePart(dest);
continue;