Traffic: use new-style subsystem lookup
This commit is contained in:
parent
1d8cad58db
commit
42a8adb07e
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ void FGTrafficManager::shutdown()
|
||||||
|
|
||||||
bool FGTrafficManager::doDataSync()
|
bool FGTrafficManager::doDataSync()
|
||||||
{
|
{
|
||||||
simgear::SGTerraSync* terraSync = static_cast<simgear::SGTerraSync*>(globals->get_subsystem("terrasync"));
|
auto terraSync = globals->get_subsystem<simgear::SGTerraSync>();
|
||||||
bool doDataSync = fgGetBool("/sim/terrasync/ai-data-enabled");
|
bool doDataSync = fgGetBool("/sim/terrasync/ai-data-enabled");
|
||||||
if (doDataSync && terraSync) {
|
if (doDataSync && terraSync) {
|
||||||
if (!trafficSyncRequested) {
|
if (!trafficSyncRequested) {
|
||||||
|
|
Loading…
Reference in a new issue