]> git.mxchange.org Git - flightgear.git/commitdiff
prevent endless loop. The new awy.dat.gz has entries like line 2632 ...
authormfranz <mfranz>
Thu, 11 Oct 2007 13:51:11 +0000 (13:51 +0000)
committermfranz <mfranz>
Thu, 11 Oct 2007 13:51:11 +0000 (13:51 +0000)
AMIBO  34.973889  021.658056 ARLOS  34.625278  023.000000 1 095 195 M871-MT E-MT W-N4
... where unexpected ids follow (here E-MT W-N4). The loader didn't skipeol.
The additional values are for a first quick&dirty fix just dropped.

src/Navaids/awynet.cxx

index 0bc2b7e2f32137e1e001744c5464981d0d10cd44..73d3582fc02dca00c76f51a78e71967e7c036d89 100755 (executable)
@@ -227,6 +227,7 @@ void FGAirwayNetwork::load(SGPath path)
       // Read each line from the database
       identStart = token;
       in >> latStart >> lonStart >> identEnd >> latEnd >> lonEnd >> type >> base >> top >> name;
+      in >> skipeol;
       /*out << identStart << " "
        << latStart   << " "
        << lonStart   << " "