From: jmt Date: Tue, 15 Sep 2009 15:34:36 +0000 (+0000) Subject: One more divide by zero fix from Torsten. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf830f681d1641aa2b9cf5fbc439f41c22bb4511;p=flightgear.git One more divide by zero fix from Torsten. --- diff --git a/src/Instrumentation/navradio.cxx b/src/Instrumentation/navradio.cxx index 744ce74ee..37e4c6101 100644 --- a/src/Instrumentation/navradio.cxx +++ b/src/Instrumentation/navradio.cxx @@ -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; }