aboutsummaryrefslogtreecommitdiff
path: root/XMLParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'XMLParser.cpp')
-rw-r--r--XMLParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/XMLParser.cpp b/XMLParser.cpp
index 8dda552..431c71b 100644
--- a/XMLParser.cpp
+++ b/XMLParser.cpp
@@ -48,7 +48,7 @@ void XMLParser::parse(File & f, Deserializer & d) {
throw Exception("missing <nodeTypes>");
for (xml_node node_type : node_types) {
d.add_type(
- node_type.attribute("tag").as_string(),
+ node_type.attribute("tag").as_string()[0],
{
.red = node_type.attribute("red").as_uint(),
.green = node_type.attribute("green").as_uint(),
@@ -66,7 +66,7 @@ void XMLParser::parse(File & f, Deserializer & d) {
node.attribute("x").as_uint(),
node.attribute("y").as_uint(),
{
- .type = node.name(),
+ .type = node.name()[0],
}
);
}