From 5986ddc6d6fc2ea209f2d2307d4562fbbf1a0232 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 3 Oct 2007 06:42:49 +0000 Subject: [PATCH] stop runway searching when the first airport id doesn't match --- src/Scripting/NasalSys.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 6829e5ce2..32dcb98e6 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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);