Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > 8240fc2dbf20b82a9e9bcafe91245836 > files > 1

ufoai-2.5-11.mga9.src.rpm

diff -Nrup a/src/common/xml.cpp b/src/common/xml.cpp
--- a/src/common/xml.cpp	2014-06-05 06:18:39.000000000 +0200
+++ b/src/common/xml.cpp	2019-03-31 08:19:01.952035670 +0200
@@ -520,7 +520,7 @@ static mxml_type_t mxml_ufo_type_cb (xml
 	 * element name, hierarchy, etc... */
 	const char* type = mxmlElementGetAttr(node, "type");
 	if (type == nullptr)
-		type = node->value.element.name;
+		type = mxmlGetElement(node);
 
 	if (!strcmp(type, "int"))
 		return MXML_INTEGER;