From: Mathias Froehlich Date: Sat, 18 Feb 2012 12:20:25 +0000 (+0100) Subject: hla: Do not introduce an empty enumerated data type. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4683e7e9c95aa78e99e90e3a3f7f8390594ffa14;p=simgear.git hla: Do not introduce an empty enumerated data type. This fixes a bogous enumerated data type that is up to now introduced into the data type map. --- diff --git a/simgear/hla/HLAOMTXmlVisitor.cxx b/simgear/hla/HLAOMTXmlVisitor.cxx index e573f244..89784b1c 100644 --- a/simgear/hla/HLAOMTXmlVisitor.cxx +++ b/simgear/hla/HLAOMTXmlVisitor.cxx @@ -729,11 +729,6 @@ HLAOMTXmlVisitor::startElement(const char* name, const XMLAttributes& atts) throw sg_exception("enumeratedDataTypes tag outside dataTypes!"); pushMode(EnumeratedDataTypesMode); - Enumerator enumerator; - enumerator._name = getAttribute("name", atts); - enumerator._values = getAttribute("values", atts); - _enumeratedDataMap[_enumeratedDataName]._enumeratorList.push_back(enumerator); - } else if (strcmp(name, "arrayData") == 0) { if (getCurrentMode() != ArrayDataTypesMode) throw sg_exception("arrayData tag outside arrayDataTypes!");