diff --git a/src/ATC/trafficcontrol.cxx b/src/ATC/trafficcontrol.cxx index 0da90a6a8..416059529 100644 --- a/src/ATC/trafficcontrol.cxx +++ b/src/ATC/trafficcontrol.cxx @@ -190,6 +190,9 @@ FGTrafficRecord::FGTrafficRecord(): FGTrafficRecord::~FGTrafficRecord() { + if (aircraft) { + aircraft->clearATCController(); + } } void FGTrafficRecord::setPositionAndIntentions(int pos,