summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-20 11:05:56 +0000
committermaedhros <maedhros@openttd.org>2007-04-20 11:05:56 +0000
commit8b65349d86f0bf71af0ec1a9bf1c08cd9adac2ec (patch)
treec0083a71d9e250f6a692f1516b1b6ef7a9a45504 /src/aircraft_cmd.cpp
parentfdf86bb4a2682eca65d6eefe89c7023cd91d7630 (diff)
downloadopenttd-8b65349d86f0bf71af0ec1a9bf1c08cd9adac2ec.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/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 12e569552..aabe323bd 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1411,6 +1411,7 @@ static void HandleAircraftLoading(Vehicle *v, int mode)
}
Order b = v->current_order;
+ v->LeaveStation();
v->current_order.Free();
MarkAircraftDirty(v);
if (!(b.flags & OF_NON_STOP)) return;