1
0
Fork 0

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.
This commit is contained in:
curt 2004-12-03 21:49:21 +00:00
parent 634e79353f
commit a775631226
2 changed files with 10 additions and 10 deletions

View file

@ -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];

View file

@ -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