summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-21 18:28:35 +0000
committerrubidium <rubidium@openttd.org>2008-09-21 18:28:35 +0000
commit7ef54069462d5aca6a995c84bcdb115fb5ad66bb (patch)
tree1e819cb68dd0710c53d955077906e09489b6b9c7 /src/vehicle.cpp
parent2bf182fb366e3feb5cdc917ba8c62fb5143e6c6b (diff)
downloadopenttd-7ef54069462d5aca6a995c84bcdb115fb5ad66bb.tar.xz
(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 1e6ffb374..941ad8153 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -643,8 +643,7 @@ void Vehicle::PreDestructor()
if (IsValidStationID(this->last_station_visited)) {
GetStation(this->last_station_visited)->loading_vehicles.remove(this);
- HideFillingPercent(this->fill_percent_te_id);
- this->fill_percent_te_id = INVALID_TE_ID;
+ HideFillingPercent(&this->fill_percent_te_id);
}
if (IsEngineCountable(this)) {
@@ -2533,8 +2532,7 @@ void Vehicle::LeaveStation()
Station *st = GetStation(this->last_station_visited);
st->loading_vehicles.remove(this);
- HideFillingPercent(this->fill_percent_te_id);
- this->fill_percent_te_id = INVALID_TE_ID;
+ HideFillingPercent(&this->fill_percent_te_id);
if (this->type == VEH_TRAIN) {
/* Trigger station animation (trains only) */