order_gui.c
changeset 2548 97ada3bd2702
parent 2436 177cb6a8339f
child 2549 f1d3b383d557
--- a/order_gui.c	Fri Oct 21 12:24:55 2005 +0000
+++ b/order_gui.c	Sat Oct 22 06:39:32 2005 +0000
@@ -18,9 +18,9 @@
 #include "depot.h"
 #include "waypoint.h"
 
-static int OrderGetSel(Window *w)
+static int OrderGetSel(const Window* w)
 {
-	Vehicle *v = GetVehicle(w->window_number);
+	const Vehicle* v = GetVehicle(w->window_number);
 	int num = WP(w,order_d).sel;
 
 	if (num < 0 || num > v->num_orders)
@@ -113,7 +113,6 @@
 		SETBIT(w->disabled_state, 8);	/* full load */
 		SETBIT(w->disabled_state, 9);	/* unload */
 		SETBIT(w->disabled_state, 10); /* transfer */
-
 	}
 
 	SetDParam(0, v->string_id);