]> git.mxchange.org Git - flightgear.git/commitdiff
One more divide by zero fix from Torsten.
authorjmt <jmt>
Tue, 15 Sep 2009 15:34:36 +0000 (15:34 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 17 Sep 2009 20:48:10 +0000 (22:48 +0200)
src/Instrumentation/navradio.cxx

index 744ce74eeb57b85bd6bc79cf61ee30b49e17dbef..37e4c61019b321c8027f5d81006f159e92fe7ef7 100644 (file)
@@ -271,7 +271,7 @@ FGNavRadio::unbind ()
 double FGNavRadio::adjustNavRange( double stationElev, double aircraftElev,
                                  double nominalRange )
 {
-    if (nominalRange < 0.0) {
+    if (nominalRange <= 0.0) {
       nominalRange = FG_NAV_DEFAULT_RANGE;
     }