# HG changeset patch # User rubidium # Date 2007-04-20 17:52:28 # Node ID ed1b81c85367d4b99b2657b9beaf941d084ee630 # Parent 327123b6721a3523378c5bf8113a789de21ca91b (svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a non-existing station. diff --git a/src/vehicle.cpp b/src/vehicle.cpp --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -570,7 +570,7 @@ bool IsEngineCountable(const Vehicle *v) 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); }