--- a/order.h Tue Oct 03 15:05:27 2006 +0000
+++ b/order.h Tue Oct 03 16:05:11 2006 +0000
@@ -191,6 +191,8 @@
order.dest = GB(packed, 16, 16);
order.next = NULL;
order.index = 0; // avoid compiler warning
+ order.refit_cargo = CT_INVALID;
+ order.refit_subtype = 0;
return order;
}
--- a/order_cmd.c Tue Oct 03 15:05:27 2006 +0000
+++ b/order_cmd.c Tue Oct 03 16:05:11 2006 +0000
@@ -57,6 +57,9 @@
order.flags = 0;
}
+ order.refit_cargo = CT_INVALID;
+ order.refit_subtype = 0;
+
return order;
}
@@ -73,6 +76,8 @@
order.dest = GB(packed, 8, 8);
order.next = NULL;
order.index = 0; // avoid compiler warning
+ order.refit_cargo = CT_INVALID;
+ order.refit_subtype = 0;
return order;
}
--- a/order_gui.c Tue Oct 03 15:05:27 2006 +0000
+++ b/order_gui.c Tue Oct 03 16:05:11 2006 +0000
@@ -215,6 +215,8 @@
Order order;
order.next = NULL;
order.index = 0;
+ order.refit_cargo = CT_INVALID;
+ order.refit_subtype = 0;
// check depot first
if (_patches.gotodepot) {