From 6cc287c66914c72aaa63cc3caa27d5480399f15b Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 30 Oct 2007 20:31:35 +0000 Subject: [PATCH] (svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 48f16b5828..d734d229de 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1804,7 +1804,7 @@ CommandCost CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { assert(w != NULL); - if (w->cargo_type != v->cargo_type || w->cargo_subtype != v->cargo_type) { + if (w->cargo_type != v->cargo_type || w->cargo_subtype != v->cargo_subtype) { cost = DoCommand(0, w->index, v->cargo_type | (v->cargo_subtype << 8) | 1U << 16 , flags, GetCmdRefitVeh(v)); if (CmdSucceeded(cost)) total_cost.AddCost(cost); }