From: mfranz Date: Thu, 11 Oct 2007 13:51:11 +0000 (+0000) Subject: prevent endless loop. The new awy.dat.gz has entries like line 2632 ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97d3b07a1f4e0fe1f74830b92bf174eb9ea53455;p=flightgear.git prevent endless loop. The new awy.dat.gz has entries like line 2632 ... 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. --- diff --git a/src/Navaids/awynet.cxx b/src/Navaids/awynet.cxx index 0bc2b7e2f..73d3582fc 100755 --- a/src/Navaids/awynet.cxx +++ b/src/Navaids/awynet.cxx @@ -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 << " "