]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/FGTileLoader.cxx
Mathias Fröhlich:
[flightgear.git] / src / Scenery / FGTileLoader.cxx
index 255e76b85bb117ee7314999ebb235b406fa35476..03cb493d56e89ac88c18e0509d27a0e0fea5a69b 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 
 #include <simgear/compiler.h>
+#include <simgear/structure/exception.hxx>
 
 #include <Main/globals.hxx>
 #include "FGTileLoader.hxx"
@@ -45,7 +46,7 @@ FGTileLoader::FGTileLoader()
     for (int i = 0; i < MAX_THREADS; ++i)
     {
        threads[i] = new LoaderThread(this);
-       threads[i]->start();
+       threads[i]->start( 1 );
     }
 #endif // ENABLE_THREADS
 }
@@ -93,6 +94,9 @@ FGTileLoader::add( FGTileEntry* tile )
     static bool beenhere = false;
     if (!beenhere) {
         tile_path = globals->get_fg_scenery();
+        if (!tile_path.size())
+            throw sg_throwable(string("No valid scenery path defined!"));
+
         beenhere = true;
     }