]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Fri, 9 Feb 2007 05:34:34 +0000 (05:34 +0000)
committerfrohlich <frohlich>
Fri, 9 Feb 2007 05:34:34 +0000 (05:34 +0000)
Airports/runways.cxx: Correct termination condition.

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