Move functionality into clear_fg_scenerey helper.
This commit is contained in:
parent
5e4f212b84
commit
8bfb1c3aa5
2 changed files with 2 additions and 3 deletions
|
@ -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"));
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue