From 1b33f1987712f5b03600ae5dccb13922b9526af5 Mon Sep 17 00:00:00 2001 From: maedhros Date: Sun, 27 May 2007 05:32:37 +0000 Subject: (svn r9953) -Fix: Only check whether trains are multiheaded when cloning. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2