]> git.mxchange.org Git - flightgear.git/commitdiff
Fix by Durk Talsma to fix the Airport AI directory preread code.
authorehofman <ehofman>
Sat, 11 Jun 2005 08:13:30 +0000 (08:13 +0000)
committerehofman <ehofman>
Sat, 11 Jun 2005 08:13:30 +0000 (08:13 +0000)
src/Airports/simple.cxx

index a516036c8da896d43ef3d6505606bed790cad301..1964ce66727ebca7bb43d6241449c53c93a2476d 100644 (file)
@@ -1192,7 +1192,7 @@ void FGAirportList::add( const string id, const double longitude,
     rwyPrefPath.append( "/Airports/AI/" );
     rwyPrefPath.append(id);
     rwyPrefPath.append("rwyuse.xml");
-    if (ai_dirs.find(parkpath.str()) != ai_dirs.end()
+    if (ai_dirs.find(id.c_str()) != ai_dirs.end()
         && parkpath.exists()) 
       {
        try {
@@ -1202,7 +1202,7 @@ void FGAirportList::add( const string id, const double longitude,
          //cerr << "unable to read " << parkpath.str() << endl;
        }
       }
-    if (ai_dirs.find(rwyPrefPath.str()) != ai_dirs.end()
+    if (ai_dirs.find(id.c_str()) != ai_dirs.end()
         && rwyPrefPath.exists()) 
       {
        try {