summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2017-03-24 07:33:31 +0000
committerpeter1138 <peter1138@openttd.org>2017-03-24 07:33:31 +0000
commit19d56a33e8842fb5e6b5f028c3d8050405af2c1a (patch)
treeac0c5fb47fd13f1a32c3f83db71da9850ba7fee8 /src/vehicle.cpp
parentbcc5c9f81d2c3fb3f31ba1dce647c7974d46cbd2 (diff)
downloadopenttd-19d56a33e8842fb5e6b5f028c3d8050405af2c1a.tar.xz
(svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display to group vehicle list (mtm, JGR)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index b68646131..4dbdf24df 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2160,6 +2160,7 @@ void Vehicle::LeaveStation()
st->loading_vehicles.remove(this);
HideFillingPercent(&this->fill_percent_te_id);
+ trip_occupancy = CalcPercentVehicleFilled(this, NULL);
if (this->type == VEH_TRAIN && !(this->vehstatus & VS_CRASHED)) {
/* Trigger station animation (trains only) */