(svn r6361) -Fix: When removing orders of a deleted station/depot/waypoint do not skip vehicles without an order list, because they still can have a current order and/or last visited station, which must be inspected
This commit is contained in:
		@@ -975,8 +975,6 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination)
 | 
				
			|||||||
		Order *order;
 | 
							Order *order;
 | 
				
			||||||
		bool invalidate;
 | 
							bool invalidate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (v->orders == NULL) continue;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		/* Forget about this station if this station is removed */
 | 
							/* Forget about this station if this station is removed */
 | 
				
			||||||
		if (v->last_station_visited == destination && type == OT_GOTO_STATION) {
 | 
							if (v->last_station_visited == destination && type == OT_GOTO_STATION) {
 | 
				
			||||||
			v->last_station_visited = INVALID_STATION;
 | 
								v->last_station_visited = INVALID_STATION;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user