]> git.mxchange.org Git - flightgear.git/commitdiff
The lookup method was always skipping the first ILS for any frequency
authordavid <david>
Tue, 13 May 2003 14:15:30 +0000 (14:15 +0000)
committerdavid <david>
Tue, 13 May 2003 14:15:30 +0000 (14:15 +0000)
-- I discovered the problem while puzzling over an LOC that wouldn't
come in.

src/Navaids/ilslist.cxx

index 2892130f27f89d16cf34c1c95c184b08e77345a3..0c278989bc15e4771fdd7d9f2cbe7b675db04a99 100644 (file)
@@ -137,7 +137,7 @@ FGILS *FGILSList::findByFreq( double freq,
     Point3D aircraft = sgGeodToCart( Point3D(lon, lat, elev) );
     Point3D station;
     double d2;
-    for ( unsigned int i = 1; i < stations.size(); ++i ) {
+    for ( unsigned int i = 0; i < stations.size(); ++i ) {
        // cout << "  testing " << current->get_locident() << endl;
        station = Point3D(stations[i]->get_x(), 
                          stations[i]->get_y(),