]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/runways.cxx
- Added ultra-light traffic is now a separate traffic class that can have its
[flightgear.git] / src / Airports / runways.cxx
index cf6550aea02001610430ea109521ed584314a630..c38c9fef2a408dc5e585e314a06c69384c76fec2 100644 (file)
@@ -262,7 +262,8 @@ string FGRunwayList::search( const string& aptid, const int tgt_hdg ) {
            found_dir = 180.0;
        }
        
-       next( &tmp_r );
+        if (!next( &tmp_r ))
+            break;
     }
     
     // SG_LOG( SG_GENERAL, SG_INFO, "closest runway = " << r._rwy_no