1
0
Fork 0

Harald Johnsen: Change directory exists() logic to enable traffic loading

on Windows-XP machines.
This commit is contained in:
durk 2007-08-18 05:09:46 +00:00
parent e23f731ef7
commit e038ca1d76

View file

@ -128,10 +128,8 @@ void FGTrafficManager::init()
readXML(path.str(),*this);
aircraftDir.append("AI/Aircraft");
if (aircraftDir.exists())
if ((d = ulOpenDir(aircraftDir.c_str())) != NULL)
{
if((d = ulOpenDir(aircraftDir.c_str())) == NULL)
return;
while((dent = ulReadDir(d)) != NULL) {
//cerr << "Scanning : " << dent->d_name << endl;
if (string(dent->d_name) != string(".") &&