summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/db/npcdialogdb.cpp3
1 files changed, 3 insertions, 0 deletions
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", "");