summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 89757e7e7..9048d3bd0 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2941,7 +2941,9 @@ void Vehicle::HandleLoading(bool mode)
/* Load/unload the vehicle; when it actually did something
* we do not leave the station. */
- if (LoadUnloadVehicle(this)) return;
+ LoadUnloadVehicle(this);
+
+ if (!HASBIT(this->vehicle_flags, VF_LOADING_FINISHED)) return;
this->PlayLeaveStationSound();