From f2752fdec3661a7ffaf592747c2c65f56662a384 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 May 2016 03:28:10 +0300 Subject: Fix error in log in NpcDialogDB. --- src/resources/db/npcdialogdb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/resources/db/npcdialogdb.cpp b/src/resources/db/npcdialogdb.cpp index d59f472ad..558a7e453 100644 --- a/src/resources/db/npcdialogdb.cpp +++ b/src/resources/db/npcdialogdb.cpp @@ -54,6 +54,9 @@ static void loadNpcDialogMenu(NpcDialogInfo *const dialog, { for_each_xml_child_node(childNode, node) { + if (!xmlTypeEqual(childNode, XML_ELEMENT_NODE)) + continue; + if (xmlNameEqual(childNode, "button")) { const std::string name = XML::getProperty(childNode, "name", ""); -- cgit v1.2.3-70-g09d2