order_gui.c
changeset 2921 c6d012dd525f
parent 2920 a582cd504686
child 2952 6a26eeda9679
--- a/order_gui.c	Sun Jan 29 20:03:50 2006 +0000
+++ b/order_gui.c	Sun Jan 29 20:06:26 2006 +0000
@@ -191,8 +191,6 @@
 	Order order;
 	int st_index;
 
-	order.station = INVALID_STATION;
-
 	// check depot first
 	if (_patches.gotodepot) {
 		switch (GetTileType(tile)) {
@@ -278,6 +276,7 @@
 	// not found
 	order.type = OT_NOTHING;
 	order.flags = 0;
+	order.station = INVALID_STATION;
 	return order;
 }