summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-08 17:44:46 +0000
committerrubidium <rubidium@openttd.org>2007-07-08 17:44:46 +0000
commit26985a012810d1dabab492400f756e949688d780 (patch)
treea6681e44855464ec3ef2d02a2190cb421084c112 /src/vehicle.cpp
parent283a06e4a195fabea413c55e236586a880c794f6 (diff)
downloadopenttd-26985a012810d1dabab492400f756e949688d780.tar.xz
(svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index dea86bc01..d331f6325 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -675,6 +675,9 @@ void DestroyVehicle(Vehicle *v)
{
if (IsValidStationID(v->last_station_visited)) {
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)) {