diff --git a/src/Scenery/FGTileLoader.cxx b/src/Scenery/FGTileLoader.cxx index 1ca949f3b..03cb493d5 100644 --- a/src/Scenery/FGTileLoader.cxx +++ b/src/Scenery/FGTileLoader.cxx @@ -25,6 +25,7 @@ #endif #include +#include #include
#include "FGTileLoader.hxx" @@ -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; }