From 9e143bc6150d6b88be0b26ffe87f3e91c30869ff Mon Sep 17 00:00:00 2001 From: david Date: Sun, 19 Jan 2003 12:54:26 +0000 Subject: [PATCH] Use FGGlobals::get_fg_root instead of looking up the environment variable directly. --- src/GUI/new_gui.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)