1
0
Fork 0

stop runway searching when the first airport id doesn't match

This commit is contained in:
mfranz 2007-10-03 06:42:49 +00:00
parent a4e1daef5c
commit 5986ddc6d6

View file

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