summaryrefslogtreecommitdiff
path: root/src
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
commit6dfbc5a1139a14200bb6424c5e1ded0635ec6e06 (patch)
treea6681e44855464ec3ef2d02a2190cb421084c112 /src
parent95ea8fd2f192cc0bcf7538ec4cd97e4dddcff9d5 (diff)
downloadopenttd-6dfbc5a1139a14200bb6424c5e1ded0635ec6e06.tar.xz
(svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed.
Diffstat (limited to 'src')
-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)) {