]> git.mxchange.org Git - flightgear.git/commitdiff
Fix an indexing problem.
authorehofman <ehofman>
Fri, 16 Jul 2004 20:02:36 +0000 (20:02 +0000)
committerehofman <ehofman>
Fri, 16 Jul 2004 20:02:36 +0000 (20:02 +0000)
src/Main/globals.cxx

index b2b862fba5f39e90168ec6789fe9f62a47ed058b..73adb93ea704c2370cdc1fe055ce6ef862905a45 100644 (file)
@@ -129,7 +129,7 @@ void FGGlobals::set_fg_scenery (const string &scenery) {
 
     for (unsigned i = 0; i < path_list.size(); i++) {
 
-        ulDir *d = ulOpenDir( path_list[0].c_str() );
+        ulDir *d = ulOpenDir( path_list[i].c_str() );
         if (d == NULL)
             continue;
         ulCloseDir( d );