Fix HLAFederate for readXML API change

This commit is contained in:
James Turner 2016-07-04 07:20:23 +01:00
parent a636da6959
commit c40044feeb

View File

@ -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());