summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index c14d376e1..d851dcb09 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2916,5 +2916,5 @@ void Vehicle::LeaveStation()
assert(current_order.type == OT_LOADING);
current_order.type = OT_LEAVESTATION;
current_order.flags = 0;
- GetStation(this->last_station_visited)->loading_vehicles.push_back(this);
+ GetStation(this->last_station_visited)->loading_vehicles.remove(this);
}