]> git.mxchange.org Git - flightgear.git/commitdiff
stop runway searching when the first airport id doesn't match
authormfranz <mfranz>
Wed, 3 Oct 2007 06:42:49 +0000 (06:42 +0000)
committermfranz <mfranz>
Wed, 3 Oct 2007 06:42:49 +0000 (06:42 +0000)
src/Scripting/NasalSys.cxx

index 6829e5ce298d61ef1db01e7e984ba3aec4a2b2f1..32dcb98e6256c311587ff4978fbb0da40063f999 100644 (file)
@@ -519,7 +519,7 @@ static naRef f_airportinfo(naContext c, naRef me, int argc, naRef* args)
     naRef rwys = naNewHash(c);
     if(rwylst->search(id, &rwy)) {
         do {
-            if(rwy._id != id) continue;
+            if(rwy._id != id) break;
             if(rwy._type != "runway") continue;
 
             naRef rwydata = naNewHash(c);