summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-10-31 12:59:47 +0000
committerbjarni <bjarni@openttd.org>2005-10-31 12:59:47 +0000
commit682b9ee8e4e594b4737528ff769bbe526aee2f8e (patch)
tree27e67e4ab96bd9ad2c2eea8092cd15b2d09de93c /aircraft_cmd.c
parent95d1c43565402743d5cf6f215886ba028a54bb93 (diff)
downloadopenttd-682b9ee8e4e594b4737528ff769bbe526aee2f8e.tar.xz
(svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c line 378
running MaybeReplaceVehicle() is now delayed until after the loop in CallVehicleTicks() This avoids selling the vehicle the loop currently works with (and continues to work with afterwards)
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 545a9f92e..2478a8e10 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -1302,8 +1302,6 @@ static void AircraftEnterHangar(Vehicle *v)
ServiceAircraft(v);
InvalidateWindowClasses(WC_AIRCRAFT_LIST);
- v = MaybeReplaceVehicle(v);
-
TriggerVehicle(v, VEHICLE_TRIGGER_DEPOT);
if (v->current_order.type == OT_GOTO_DEPOT) {