]> git.mxchange.org Git - flightgear.git/commitdiff
better check all runways, not just the first one :-)
authormfranz <mfranz>
Sun, 7 Oct 2007 17:45:58 +0000 (17:45 +0000)
committermfranz <mfranz>
Sun, 7 Oct 2007 17:45:58 +0000 (17:45 +0000)
src/Airports/runways.cxx

index 85b92ec5a63b76a1c93c832d83ef1cb51a8b39e2..0cd66776f079d4167929e62a3ae8d7c04290e31b 100644 (file)
@@ -285,7 +285,7 @@ string FGRunwayList::search( const string& aptid, const int hdg ) {
             reversed = true;
         }
 
-    } while (!next(&r));
+    } while (next(&r));
 
     return reversed ? GetReverseRunwayNo(best._rwy_no) : best._rwy_no;
 }