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.
This commit is contained in:
Mathias Froehlich
2012-02-18 13:20:25 +01:00
parent dc9163f801
commit 4683e7e9c9

View File

@@ -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!");