From 18a5a2a144c66ce8d81946174a015fcdb037ad72 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 6 Sep 2010 16:10:58 +0100 Subject: [PATCH] Fix one more place to use path resolution (and hence work with multiple aircraft dirs) Thanks to Jentron for the catch. --- src/Systems/electrical.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Systems/electrical.cxx b/src/Systems/electrical.cxx index 18e80222f..d711b4dca 100644 --- a/src/Systems/electrical.cxx +++ b/src/Systems/electrical.cxx @@ -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 "