(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
authordominik
Wed, 05 Jan 2005 13:48:38 +0000
changeset 901 c92d5da1acb3
parent 900 feed1801fd35
child 902 df8c96ee70d5
(svn r1387) Fix: Airplanes now also crash when only one invalid order is in the schedule
aircraft_cmd.c
--- a/aircraft_cmd.c	Wed Jan 05 13:32:03 2005 +0000
+++ b/aircraft_cmd.c	Wed Jan 05 13:48:38 2005 +0000
@@ -1041,6 +1041,9 @@
 		return;
 	}
 
+	if ( order.type == OT_DUMMY && !CheckForValidOrders(v))
+		CrashAirplane(v);
+
 	if (order.type == v->current_order.type &&
 			order.flags == v->current_order.flags &&
 			order.station == v->current_order.station)
@@ -1054,9 +1057,6 @@
 		v->u.air.targetairport = order.station;
 	}
 
-	if ( order.type == OT_DUMMY && !CheckForValidOrders(v))
-		CrashAirplane(v);
-
 	InvalidateVehicleOrderWidget(v);
 }