mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 05:42:42 +00:00
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
This commit is contained in:
parent
e17db9655c
commit
1358756071
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user