From 42a8adb07e2e637a41026d016238f439e6072091 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 4 Apr 2020 08:02:16 +0100 Subject: [PATCH] Traffic: use new-style subsystem lookup --- src/Traffic/TrafficMgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {