]> git.mxchange.org Git - flightgear.git/commitdiff
Fix one more place to use path resolution
authorJames Turner <zakalawe@mac.com>
Mon, 6 Sep 2010 15:10:58 +0000 (16:10 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 6 Sep 2010 15:10:58 +0000 (16:10 +0100)
(and hence work with multiple aircraft dirs)
Thanks to Jentron for the catch.

src/Systems/electrical.cxx

index 18e80222faf586a4ac9af8d54cbf9502378e3fb7..d711b4dcac67487a4fc9133e6a1c92feb33bcc29 100644 (file)
@@ -373,9 +373,8 @@ void FGElectricalSystem::init () {
     }
 
     if ( path.length() ) {
-        SGPath config( globals->get_fg_root() );
-        config.append( path );
-
+        SGPath config = globals->resolve_aircraft_path(path);
+        
         // load an obsolete xml configuration
         SG_LOG( SG_ALL, SG_WARN,
                 "Reading deprecated xml electrical system model from\n    "