diff --git a/simgear/hla/HLAFederate.cxx b/simgear/hla/HLAFederate.cxx index 462351cc..ff9d6e89 100644 --- a/simgear/hla/HLAFederate.cxx +++ b/simgear/hla/HLAFederate.cxx @@ -798,7 +798,7 @@ HLAFederate::readRTI1516ObjectModelTemplate(const std::string& objectModel) // This one covers the generic attributes, parameters and data types. HLAOMTXmlVisitor omtXmlVisitor; try { - readXML(objectModel, omtXmlVisitor); + readXML(SGPath(objectModel), omtXmlVisitor); } catch (const sg_throwable& e) { SG_LOG(SG_IO, SG_ALERT, "Could not open HLA XML object model file: " << e.getMessage());