From: ehofman Date: Fri, 16 Jul 2004 20:02:36 +0000 (+0000) Subject: Fix an indexing problem. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6a19060d2c48a07ad4dcdcbd56b1fed26c567a4b;p=flightgear.git Fix an indexing problem. --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index b2b862fba..73adb93ea 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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 );