]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/native_gui.cxx
Fix a couple of 64-bit warnings identified by GCC.
[flightgear.git] / src / Network / native_gui.cxx
index eaae3c32a0adbabb07b8242d5621b88d46f7616a..e78ac47ffc79e64de9990eecd3d006cefafd030f 100644 (file)
@@ -20,6 +20,7 @@
 //
 // $Id$
 
+// TODO FIXME Module still contains lots of "static SGPropertyNode"s below.
 
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
@@ -314,7 +315,7 @@ void FGNetGUI2Props( FGNetGUI *net ) {
         // Approach
         fgSetDouble( "/instrumentation/nav[0]/frequencies/selected-mhz",
                      net->tuned_freq );
-        fgSetBool( "/instrumentation/nav[0]/in-range", net->in_range );
+        fgSetBool( "/instrumentation/nav[0]/in-range", net->in_range > 0);
         fgSetDouble( "/instrumentation/dme/indicated-distance-nm", net->dist_nm );
         fgSetDouble( "/instrumentation/nav[0]/heading-needle-deflection",
                      net->course_deviation_deg );