(svn r8618) -Fix
authortron
Wed, 07 Feb 2007 13:46:28 +0000
changeset 5952 5c4106e01eca
parent 5951 f842b246bfd7
child 5953 b40dc8f4dc69
(svn r8618) -Fix

Remove redundant assignments. The function call just before already does it
src/aircraft_cmd.cpp
--- a/src/aircraft_cmd.cpp	Wed Feb 07 08:36:53 2007 +0000
+++ b/src/aircraft_cmd.cpp	Wed Feb 07 13:46:28 2007 +0000
@@ -555,7 +555,6 @@
 			if (v->u.air.state == FLYING && !next_airport_has_hangar) {
 				/* The aircraft is now heading for a different hangar than the next in the orders */
 				AircraftNextAirportPos_and_Order(v);
-				v->u.air.targetairport = next_airport_index;
 			}
 		}
 	}
@@ -1245,7 +1244,6 @@
 	// orders are changed in flight, ensure going to the right station
 	if (order->type == OT_GOTO_STATION && v->u.air.state == FLYING) {
 		AircraftNextAirportPos_and_Order(v);
-		v->u.air.targetairport = order->dest;
 	}
 
 	InvalidateVehicleOrder(v);