1
0
Fork 0

Fix by Durk Talsma to fix the Airport AI directory preread code.

This commit is contained in:
ehofman 2005-06-11 08:13:30 +00:00
parent ab83702c16
commit c3037e3891

View 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 {