Mercurial > hg > openttd
diff src/autoreplace_cmd.cpp @ 10219:d37d615dd184 draft
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 05 Oct 2008 18:42:59 +0000 (2008-10-05) |
parents | 39cf8eebfda5 |
children | 45ca88a8de7d |
line wrap: on
line diff
--- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -105,7 +105,7 @@ /* 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;