diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-13 03:28:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-13 03:28:10 +0300 |
commit | f2752fdec3661a7ffaf592747c2c65f56662a384 (patch) | |
tree | 859981839924020fb67d029ec765640c420c72dc /src | |
parent | 9bee2397ee738f72c83e9e3351dad507f1f3a94a (diff) | |
download | manaverse-f2752fdec3661a7ffaf592747c2c65f56662a384.tar.gz manaverse-f2752fdec3661a7ffaf592747c2c65f56662a384.tar.bz2 manaverse-f2752fdec3661a7ffaf592747c2c65f56662a384.tar.xz manaverse-f2752fdec3661a7ffaf592747c2c65f56662a384.zip |
Fix error in log in NpcDialogDB.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/db/npcdialogdb.cpp | 3 |
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", ""); |