]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel_io.cxx
Fixed an property tieing issue on sim reset.
[flightgear.git] / src / Cockpit / panel_io.cxx
index 7ef58b6e1522ed393a9e1d2e0a34abeef30b4f41..ecd6efd89a02c674463529642c5899e92bbb6ef2 100644 (file)
@@ -839,10 +839,9 @@ fgReadPanel (istream &input)
 FGPanel *
 fgReadPanel (const string &relative_path)
 {
-  SGPath path(globals->get_fg_root());
-  path.append(relative_path);
+  SGPath path = globals->resolve_aircraft_path(relative_path);
   SGPropertyNode root;
-
+  
   try {
     readProperties(path.str(), &root);
   } catch (const sg_exception &e) {