(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.

This commit is contained in:
maedhros 2007-05-27 05:32:37 +00:00
parent 3db7a70057
commit 1b33f19877
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}