From: david Date: Tue, 13 May 2003 14:15:30 +0000 (+0000) Subject: The lookup method was always skipping the first ILS for any frequency X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d403c2e5686a8ec4ebd6532e57f18f877b075db8;p=flightgear.git The lookup method was always skipping the first ILS for any frequency -- I discovered the problem while puzzling over an LOC that wouldn't come in. --- diff --git a/src/Navaids/ilslist.cxx b/src/Navaids/ilslist.cxx index 2892130f2..0c278989b 100644 --- a/src/Navaids/ilslist.cxx +++ b/src/Navaids/ilslist.cxx @@ -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(),