diff src/vehicle.cpp @ 6509:c206820bdc06 draft

(svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a non-existing station.
author rubidium <rubidium@openttd.org>
date Fri, 20 Apr 2007 17:52:28 +0000
parents 715dde777d97
children f8eb4662e1e5
line wrap: on
line diff
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -570,7 +570,7 @@
 
 void DestroyVehicle(Vehicle *v)
 {
-	if (v->last_station_visited != INVALID_STATION) {
+	if (IsValidStationID(v->last_station_visited)) {
 		GetStation(v->last_station_visited)->loading_vehicles.remove(v);
 	}