return false;
}
- c4_RowRef r = vAirport->GetAt(idx);
-
+ c4_RowRef r = vAirport->GetAt(idx);
+ a->id = (const char *) pID(r); /// NHV fix wrong case crash
a->longitude = (double) pLon(r);
- a->latitude = (double) pLat(r);
+ a->latitude = (double) pLat(r);
a->elevation = (double) pElev(r);
return true;
if ( airports.search( AptId, &a ) )
{
+ AptId = a.id.c_str(); /// NHV fix wrong case crash
fgSetString("/sim/startup/airport-id", AptId.c_str() );
// fgSetDouble("/position/altitude-ft", -9999.0 );
// fgSetPosFromAirportID( AptId );