]> git.mxchange.org Git - flightgear.git/commitdiff
AI traffic refused to take-off, because the TrafficRecord destructor would unassign...
authorDurk Talsma <durktals@gmail.com>
Sun, 6 Mar 2016 20:23:26 +0000 (21:23 +0100)
committerDurk Talsma <durktals@gmail.com>
Sun, 6 Mar 2016 20:23:26 +0000 (21:23 +0100)
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

index 4160595294759491d8b8f210ced0ec97d3300651..3b84411997b173d54b4a468c5a901d4130417edb 100644 (file)
@@ -190,9 +190,9 @@ FGTrafficRecord::FGTrafficRecord():
 
 FGTrafficRecord::~FGTrafficRecord()
 {
-    if (aircraft) {
-        aircraft->clearATCController();
-    }
+    //if (aircraft) {
+    //    aircraft->clearATCController();
+    //}
 }
 
 void FGTrafficRecord::setPositionAndIntentions(int pos,