ATCManagers: Use modern subsystem retrieval
This commit is contained in:
parent
250669f75a
commit
21629402ce
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue