]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/electrical.cxx
Merge commit 'refs/merge-requests/1552' of git@gitorious.org:fg/flightgear into next
[flightgear.git] / 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    "