mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
This commit is contained in:
parent
3db7a70057
commit
1b33f19877
|
@ -1794,7 +1794,7 @@ int32 CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||
v = v_front;
|
||||
|
||||
do {
|
||||
if (IsMultiheaded(v) && !IsTrainEngine(v)) {
|
||||
if (v->type == VEH_TRAIN && IsMultiheaded(v) && !IsTrainEngine(v)) {
|
||||
/* we build the rear ends of multiheaded trains with the front ones */
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue