From bf830f681d1641aa2b9cf5fbc439f41c22bb4511 Mon Sep 17 00:00:00 2001 From: jmt Date: Tue, 15 Sep 2009 15:34:36 +0000 Subject: [PATCH] One more divide by zero fix from Torsten. --- src/Instrumentation/navradio.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5