From a775631226898c5f2270e7cf3a2ca2034f5c28ad Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 3 Dec 2004 21:49:21 +0000 Subject: [PATCH] Create the nodes these modules use if they don't exist already, otherwise we will segfault when we try to use them later in the routine. --- src/Network/atlas.cxx | 4 ++-- src/Network/native_gui.cxx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Network/atlas.cxx b/src/Network/atlas.cxx index 5e052d42d..38b83912b 100644 --- a/src/Network/atlas.cxx +++ b/src/Network/atlas.cxx @@ -68,9 +68,9 @@ bool FGAtlas::gen_message() { static SGPropertyNode *adf_freq = fgGetNode("/instrumentation/kr-87/outputs/selected-khz", true); static SGPropertyNode *nav_freq - = fgGetNode("/instrumentation/nav/frequencies/selected-mhz", false); + = fgGetNode("/instrumentation/nav/frequencies/selected-mhz", true); static SGPropertyNode *nav_sel_radial - = fgGetNode("/instrumentation/van/radials/selected-deg", false); + = fgGetNode("/instrumentation/van/radials/selected-deg", true); char rmc[256], gga[256], patla[256]; char rmc_sum[10], gga_sum[10], patla_sum[10]; diff --git a/src/Network/native_gui.cxx b/src/Network/native_gui.cxx index 7335b6be5..798499c66 100644 --- a/src/Network/native_gui.cxx +++ b/src/Network/native_gui.cxx @@ -121,21 +121,21 @@ bool FGNativeGUI::open() { void FGProps2NetGUI( FGNetGUI *net ) { static SGPropertyNode *nav_freq - = fgGetNode("/instrumentation/nav/frequencies/selected-mhz", false); + = fgGetNode("/instrumentation/nav/frequencies/selected-mhz", true); static SGPropertyNode *nav_target_radial - = fgGetNode("/instrumentation/nav/radials/target-radial2-deg", false); + = fgGetNode("/instrumentation/nav/radials/target-radial2-deg", true); static SGPropertyNode *nav_inrange - = fgGetNode("instrumentation/nav/in-range", false); + = fgGetNode("instrumentation/nav/in-range", true); static SGPropertyNode *nav_loc - = fgGetNode("instrumentation/nav/nav-loc", false); + = fgGetNode("instrumentation/nav/nav-loc", true); static SGPropertyNode *nav_gs_dist_signed - = fgGetNode("instrumentation/nav/gs-distance", false); + = fgGetNode("instrumentation/nav/gs-distance", true); static SGPropertyNode *nav_loc_dist - = fgGetNode("instrumentation/nav/nav-distance", false); + = fgGetNode("instrumentation/nav/nav-distance", true); static SGPropertyNode *nav_reciprocal_radial - = fgGetNode("instrumentation/nav/reciprocal-radial-deg", false); + = fgGetNode("instrumentation/nav/reciprocal-radial-deg", true); static SGPropertyNode *nav_gs_deflection - = fgGetNode("instrumentation/nav/gs-needle-deflection", false); + = fgGetNode("instrumentation/nav/gs-needle-deflection", true); int i; // Version sanity checking