(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
authormaedhros
Sun, 27 May 2007 05:32:37 +0000
changeset 7217 f0bbdb8a3164
parent 7216 637511194fec
child 7218 be09ee05aa14
(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.
src/vehicle.cpp
--- a/src/vehicle.cpp	Sun May 27 01:59:07 2007 +0000
+++ b/src/vehicle.cpp	Sun May 27 05:32:37 2007 +0000
@@ -1794,7 +1794,7 @@
 	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;
 		}