changeset 4715:0c7264c585c8 draft

(svn r6627) -Fix r6624: fixed some warnings Now it happened again. Somebody got warnings, that I didn't get... I will look into this issue
author bjarni <bjarni@openttd.org>
date Tue, 03 Oct 2006 16:05:11 +0000
parents b0b77d209856
children cbcee06834f4
files order.h order_cmd.c order_gui.c
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/order.h
+++ b/order.h
@@ -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
+++ b/order_cmd.c
@@ -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
+++ b/order_gui.c
@@ -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) {