1
0
Fork 0

Move functionality into clear_fg_scenerey helper.

This commit is contained in:
James Turner 2015-11-27 23:25:53 +00:00
parent 5e4f212b84
commit 8bfb1c3aa5
2 changed files with 2 additions and 3 deletions

View file

@ -1384,9 +1384,6 @@ do_profiler_stop(const SGPropertyNode *arg)
static bool
do_set_scenery_paths(const SGPropertyNode* arg)
{
SGPropertyNode* sim = fgGetNode("/sim", true);
sim->removeChildren("fg-scenery");
globals->clear_fg_scenery();
std::string terrasyncPath(fgGetString("/sim/terrasync/scenery-dir"));

View file

@ -418,6 +418,8 @@ void FGGlobals::clear_fg_scenery()
{
fg_scenery.clear();
secure_fg_scenery.clear();
fgGetNode("/sim", true)->removeChildren("fg-scenery");
}
void FGGlobals::set_catalog_aircraft_path(const SGPath& path)