summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-05-27 05:32:37 +0000
committermaedhros <maedhros@openttd.org>2007-05-27 05:32:37 +0000
commit4ff33af40676f816df99d7907abeac820fb344e7 (patch)
tree057aec987253b53bc99c070170d0e6010e049367 /src/vehicle.cpp
parent5e41d3364c1ec2b932eb856605226ca2b70478dd (diff)
downloadopenttd-4ff33af40676f816df99d7907abeac820fb344e7.tar.xz
(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
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;
}