From: david Date: Sun, 19 Jan 2003 12:54:26 +0000 (+0000) Subject: Use FGGlobals::get_fg_root instead of looking up the environment X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e143bc6150d6b88be0b26ffe87f3e91c30869ff;p=flightgear.git Use FGGlobals::get_fg_root instead of looking up the environment variable directly. --- diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index 21c6dca0b..6e8dc5196 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -34,7 +34,7 @@ NewGUI::init () { char path1[1024]; char path2[1024]; - ulMakePath(path1, getenv("FG_ROOT"), "gui"); + ulMakePath(path1, globals->get_fg_root().c_str(), "gui"); ulMakePath(path2, path1, "dialogs"); readDir(path2); #if !defined(FG_OLD_MENUBAR)