]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/electrical.cxx
Remove confusing default (missing) path from 2D panel code.
[flightgear.git] / src / Systems / electrical.cxx
index 103456a485b899ecb1f6f3ddb21ebb14a69798e1..d711b4dcac67487a4fc9133e6a1c92feb33bcc29 100644 (file)
@@ -24,6 +24,8 @@
 #  include <config.h>
 #endif
 
+#include <cstring>
+
 #include <simgear/structure/exception.hxx>
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/debug/logstream.hxx>
@@ -371,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    "