(svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a non-existing station.

This commit is contained in:
rubidium 2007-04-20 17:52:28 +00:00
parent 98fe82da66
commit 17dc1c6336
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}