1
0
Fork 0

Throw an exception when no valid scenery path defined.

This commit is contained in:
curt 2005-01-17 22:10:53 +00:00
parent 1b29c13911
commit dd2ea8f77d

View file

@ -25,6 +25,7 @@
#endif
#include <simgear/compiler.h>
#include <simgear/structure/exception.hxx>
#include <Main/globals.hxx>
#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;
}