From: James Turner Date: Mon, 6 Sep 2010 15:10:58 +0000 (+0100) Subject: Fix one more place to use path resolution X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18a5a2a144c66ce8d81946174a015fcdb037ad72;p=flightgear.git Fix one more place to use path resolution (and hence work with multiple aircraft dirs) Thanks to Jentron for the catch. --- 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 "