double last_apt_elev = 0.0;
string last_apt_name = "";
string last_apt_info = "";
- string last_apt_type = "";
+ int last_apt_type = 0;
SGGeod last_tower;
bool got_tower = false;
string line;
<< elev );
addAirport(airports, last_apt_id, last_apt_name, rwy_count, rwy_lat_accum, rwy_lon_accum,
- last_rwy_heading, last_apt_elev, last_tower, got_tower, line_id);
+ last_rwy_heading, last_apt_elev, last_tower, got_tower, last_apt_type);
last_apt_id = id;
last_apt_elev = elev;
last_apt_name += token[token.size() - 1];
last_apt_info = line;
- last_apt_type = token[0];
+ last_apt_type = atoi( token[0].c_str() );
// clear runway list for start of next airport
rwy_lon_accum = 0.0;
// windsock entry (ignore)
} else if ( line_id == 15 ) {
// custom startup locations (ignore)
+ } else if ( line_id == 0 ) {
+ // ??
} else if ( line_id >= 50 && line_id <= 56 ) {
// frequency entries (ignore)
} else if ( line_id == 99 ) {