From: Durk Talsma Date: Sun, 6 Mar 2016 20:23:26 +0000 (+0100) Subject: AI traffic refused to take-off, because the TrafficRecord destructor would unassign... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31c66226e17b1271fa003c85943654f7f45ff9f0;p=flightgear.git 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. --- 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,