fgSetString("/sim/terrasync/cache-path", tsyncCache.c_str());
- simgear::SGTerraSync* terra_sync = new simgear::SGTerraSync(globals->get_props());
+ simgear::SGTerraSync* terra_sync = new simgear::SGTerraSync();
+ terra_sync->setRoot(globals->get_props());
globals->add_subsystem("terrasync", terra_sync);
// pass control off to the master event handler
int result = fgOSMainLoop();
+ frame_signal.clear();
fgOSCloseWindow();
// clean up here; ensure we null globals to avoid