summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-30 20:31:35 +0000
committerrubidium <rubidium@openttd.org>2007-10-30 20:31:35 +0000
commitf9079240bd9756ec38e0aa2e78e7761b8d5ea44b (patch)
tree0dc9ff56a1bd5bf86a5597e2afd6c35077d6c2c9 /src/vehicle.cpp
parent3c0356de177c261c11cfda99a31767c081dbc9d4 (diff)
downloadopenttd-f9079240bd9756ec38e0aa2e78e7761b8d5ea44b.tar.xz
(svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 48f16b582..d734d229d 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);
}