mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 12:24:15 +00:00
(svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a non-existing station.
This commit is contained in:
parent
98fe82da66
commit
17dc1c6336
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user