From 31c66226e17b1271fa003c85943654f7f45ff9f0 Mon Sep 17 00:00:00 2001 From: Durk Talsma Date: Sun, 6 Mar 2016 21:23:26 +0100 Subject: [PATCH] AI traffic refused to take-off, because the TrafficRecord destructor would unassign an AIAircraft from it's ATC. This caused it to get stuck in front of the runway and block all other traffic. This patch may introduce an occasional crash on exit again, because it effectively undoes commit [a972df]. I'll try to find a better fix for that later on. --- src/ATC/trafficcontrol.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ATC/trafficcontrol.cxx b/src/ATC/trafficcontrol.cxx index 416059529..3b8441199 100644 --- a/src/ATC/trafficcontrol.cxx +++ b/src/ATC/trafficcontrol.cxx @@ -190,9 +190,9 @@ FGTrafficRecord::FGTrafficRecord(): FGTrafficRecord::~FGTrafficRecord() { - if (aircraft) { - aircraft->clearATCController(); - } + //if (aircraft) { + // aircraft->clearATCController(); + //} } void FGTrafficRecord::setPositionAndIntentions(int pos,