From ee15e3de13643b2d09abcc5424bf8e2d916cff75 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 13 Nov 2005 13:43:55 +0000 Subject: (svn r3172) static, const --- aircraft_gui.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'aircraft_gui.c') diff --git a/aircraft_gui.c b/aircraft_gui.c index cb092deeb..8cd5c620a 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -77,10 +77,9 @@ static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selectio void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) { - Vehicle *v; - if (success) { - v = GetVehicle(_new_aircraft_id); + const Vehicle* v = GetVehicle(_new_aircraft_id); + if (v->tile == _backup_orders_tile) { _backup_orders_tile = 0; RestoreVehicleOrders(v, _backup_orders_data); @@ -508,7 +507,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) { switch(e->event) { case WE_PAINT: { - Vehicle *v = GetVehicle(w->window_number); + const Vehicle* v = GetVehicle(w->window_number); uint32 disabled = 1<<8; StringID str; -- cgit v1.2.3-54-g00ecf