]> git.mxchange.org Git - flightgear.git/commitdiff
#609 route manager/nav display related startup segfault
authorThorstenB <brehmt@gmail.com>
Sun, 22 Jan 2012 10:23:56 +0000 (11:23 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 22 Jan 2012 10:23:56 +0000 (11:23 +0100)
Immediately update the property-tree mirror when adding waypoints (i.e.
using the "--flight-plan=..." startup option).

src/Autopilot/route_mgr.cxx

index f236884f93a123241680348f60ac71b94187a24d..1c4fa52f711f38837695e3a7bbdb20936f7e81e4 100644 (file)
@@ -399,6 +399,7 @@ void FGRouteMgr::postinit()
     
     SG_LOG(SG_AUTOPILOT, SG_INFO, "loaded initial waypoints:" << _route.size());
   }
+  update_mirror();
 
   weightOnWheels = fgGetNode("/gear/gear[0]/wow", true);
   // check airbone flag agrees with presets