Fix by Durk Talsma to fix the Airport AI directory preread code.
This commit is contained in:
parent
ab83702c16
commit
c3037e3891
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue