diff --git a/src/Traffic/TrafficMgr.cxx b/src/Traffic/TrafficMgr.cxx index 15b070f72..40dff6cd3 100644 --- a/src/Traffic/TrafficMgr.cxx +++ b/src/Traffic/TrafficMgr.cxx @@ -505,7 +505,7 @@ void FGTrafficManager::shutdown() bool FGTrafficManager::doDataSync() { - simgear::SGTerraSync* terraSync = static_cast(globals->get_subsystem("terrasync")); + auto terraSync = globals->get_subsystem(); bool doDataSync = fgGetBool("/sim/terrasync/ai-data-enabled"); if (doDataSync && terraSync) { if (!trafficSyncRequested) {