(svn r9959) -Fix: Only call GetNextVehicle for trains.

This commit is contained in:
maedhros 2007-05-27 17:27:07 +00:00
parent 7f0339748f
commit 710cc5a597
1 changed files with 1 additions and 1 deletions

View File

@ -1872,7 +1872,7 @@ int32 CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
}
} while (v->type == VEH_TRAIN && EngineHasArticPart(v) && (v = GetNextArticPart(v)) != NULL);
if (flags & DC_EXEC) w = GetNextVehicle(w);
if ((flags & DC_EXEC) && v->type == VEH_TRAIN) w = GetNextVehicle(w);
} while (v->type == VEH_TRAIN && (v = GetNextVehicle(v)) != NULL);
/* Since we can't estimate the cost of cloning a vehicle accurately we must