]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/FGTileLoader.cxx
Currently, when the sim pauses, all IO is also halted. To me it generally
[flightgear.git] / src / Scenery / FGTileLoader.cxx
index d46e32f203d084b2e639fae988dc3f265f90fb3e..32cad6ead3f20b3e6aa3d5c6e7d2872bd3ddc06f 100644 (file)
@@ -92,14 +92,14 @@ FGTileLoader::add( FGTileEntry* tile )
     static bool beenhere = false;
     if (!beenhere)
     {
-        SGPath tmp;
        if ( !globals->get_fg_scenery().empty() ) {
-           tmp.set( globals->get_fg_scenery() );
+            tile_path = globals->get_fg_scenery();
        } else {
+            SGPath tmp;
            tmp.set( globals->get_fg_root() );
-           tile_path.append( "Scenery" );
+            tmp.append( "Scenery" );
+            tile_path = tmp.str();
        }
-        tile_path = tmp.str();
        beenhere = true;
     }