(svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed.

This commit is contained in:
rubidium 2007-07-08 17:44:46 +00:00
parent 283a06e4a1
commit 26985a0128

View File

@ -675,6 +675,9 @@ void DestroyVehicle(Vehicle *v)
{ {
if (IsValidStationID(v->last_station_visited)) { if (IsValidStationID(v->last_station_visited)) {
GetStation(v->last_station_visited)->loading_vehicles.remove(v); GetStation(v->last_station_visited)->loading_vehicles.remove(v);
HideFillingPercent(v->fill_percent_te_id);
v->fill_percent_te_id = INVALID_TE_ID;
} }
if (IsEngineCountable(v)) { if (IsEngineCountable(v)) {