mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9959) -Fix: Only call GetNextVehicle for trains.
This commit is contained in:
parent
7f0339748f
commit
710cc5a597
|
@ -1872,7 +1872,7 @@ int32 CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||
}
|
||||
} while (v->type == VEH_TRAIN && EngineHasArticPart(v) && (v = GetNextArticPart(v)) != NULL);
|
||||
|
||||
if (flags & DC_EXEC) w = GetNextVehicle(w);
|
||||
if ((flags & DC_EXEC) && v->type == VEH_TRAIN) w = GetNextVehicle(w);
|
||||
} while (v->type == VEH_TRAIN && (v = GetNextVehicle(v)) != NULL);
|
||||
|
||||
/* Since we can't estimate the cost of cloning a vehicle accurately we must
|
||||
|
|
Loading…
Reference in New Issue