]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/FGTileLoader.cxx
ignore resets for now because every z/Z key press would trigger a call to NOAA. We...
[flightgear.git] / src / Scenery / FGTileLoader.cxx
index 2e0a01b2b860da2016717a9d4004341a66c3e5cb..32cad6ead3f20b3e6aa3d5c6e7d2872bd3ddc06f 100644 (file)
@@ -92,11 +92,13 @@ FGTileLoader::add( FGTileEntry* tile )
     static bool beenhere = false;
     if (!beenhere)
     {
-       if ( globals->get_fg_scenery() != (string)"" ) {
-           tile_path.set( globals->get_fg_scenery() );
+       if ( !globals->get_fg_scenery().empty() ) {
+            tile_path = globals->get_fg_scenery();
        } else {
-           tile_path.set( globals->get_fg_root() );
-           tile_path.append( "Scenery" );
+            SGPath tmp;
+           tmp.set( globals->get_fg_root() );
+            tmp.append( "Scenery" );
+            tile_path = tmp.str();
        }
        beenhere = true;
     }