From 21629402ced3259b5aefc49d51df5bd7c0fafe36 Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Tue, 11 Aug 2020 18:28:51 +0100
Subject: [PATCH] ATCManagers: Use modern subsystem retrieval

---
 src/ATC/trafficcontrol.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ATC/trafficcontrol.cxx b/src/ATC/trafficcontrol.cxx
index 038fd1e23..363585bcd 100644
--- a/src/ATC/trafficcontrol.cxx
+++ b/src/ATC/trafficcontrol.cxx
@@ -560,14 +560,14 @@ FGATCController::FGATCController()
 
 FGATCController::~FGATCController()
 {
-    FGATCManager *mgr = (FGATCManager*) globals->get_subsystem("ATC");
+    auto mgr = globals->get_subsystem<FGATCManager>();
     mgr->removeController(this);
 }
 
 void FGATCController::init()
 {
     if (!initialized) {
-        FGATCManager *mgr = (FGATCManager*) globals->get_subsystem("ATC");
+        auto mgr = globals->get_subsystem<FGATCManager>();
         mgr->addController(this);
         initialized = true;
     }