mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
This commit is contained in:
parent
65abc7b161
commit
e9347b39e5
@ -105,7 +105,7 @@ static void TransferCargo(Vehicle *old_veh, Vehicle *new_head, bool part_of_chai
|
|||||||
|
|
||||||
/* Find free space in the new chain */
|
/* Find free space in the new chain */
|
||||||
for (Vehicle *dest = new_head; dest != NULL && src->cargo.Count() > 0; dest = dest->Next()) {
|
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 */
|
/* Skip vehicles, which do not belong to new_head */
|
||||||
dest = GetLastEnginePart(dest);
|
dest = GetLastEnginePart(dest);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user