diff options
author | maedhros <maedhros@openttd.org> | 2007-05-27 05:32:37 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-05-27 05:32:37 +0000 |
commit | 1b33f1987712f5b03600ae5dccb13922b9526af5 (patch) | |
tree | 057aec987253b53bc99c070170d0e6010e049367 | |
parent | 3db7a70057cef8715ac0860bb9cb49705b0b703c (diff) | |
download | openttd-1b33f1987712f5b03600ae5dccb13922b9526af5.tar.xz |
(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 656cde814..a0de1e47c 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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; } |