1
0
Fork 0

Traffic: use new-style subsystem lookup

This commit is contained in:
James Turner 2020-04-04 08:02:16 +01:00
parent 1d8cad58db
commit 42a8adb07e

View file

@ -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) {