(svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed.
authorrubidium
Tue, 30 Oct 2007 20:31:35 +0000
changeset 7812 9b694475d8f5
parent 7811 894a8c693941
child 7813 8d6600887f9d
(svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed.
src/vehicle.cpp
--- a/src/vehicle.cpp	Tue Oct 30 18:56:06 2007 +0000
+++ b/src/vehicle.cpp	Tue Oct 30 20:31:35 2007 +0000
@@ -1804,7 +1804,7 @@
 			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);
 				}