diff options
author | maedhros <maedhros@openttd.org> | 2007-04-20 11:05:56 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-04-20 11:05:56 +0000 |
commit | 88af5b07d37ff1508e9694e14d6e0d6bb46c184c (patch) | |
tree | c0083a71d9e250f6a692f1516b1b6ef7a9a45504 /src/vehicle.cpp | |
parent | 1951817f3b3682fc71c5986cb4aa5e768b32d789 (diff) | |
download | openttd-88af5b07d37ff1508e9694e14d6e0d6bb46c184c.tar.xz |
(svn r9684) -Fix (r9683): Remove vehicles from the station loading list instead of adding
them again when they leave, and add a v->LeaveStation() call for aircraft.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
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); } |