From 4683e7e9c95aa78e99e90e3a3f7f8390594ffa14 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sat, 18 Feb 2012 13:20:25 +0100 Subject: [PATCH] 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. --- simgear/hla/HLAOMTXmlVisitor.cxx | 5 ----- 1 file changed, 5 deletions(-) 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!"); -- 2.39.5