]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/simple.cxx
Tweak #includes to use double quotes for local files not <>
[flightgear.git] / src / Airports / simple.cxx
index 3f02a796ddac5e5cc4025544878815750f2c124b..583e54e001551a9c8073358017b190ef305f3ceb 100644 (file)
@@ -81,10 +81,10 @@ FGAirports::search( const string& id, FGAirport* a ) const
        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;