stop runway searching when the first airport id doesn't match
This commit is contained in:
parent
a4e1daef5c
commit
5986ddc6d6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue