summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-13 03:28:10 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-13 03:28:10 +0300
commitf2752fdec3661a7ffaf592747c2c65f56662a384 (patch)
tree859981839924020fb67d029ec765640c420c72dc
parent9bee2397ee738f72c83e9e3351dad507f1f3a94a (diff)
downloadmv-f2752fdec3661a7ffaf592747c2c65f56662a384.tar.gz
mv-f2752fdec3661a7ffaf592747c2c65f56662a384.tar.bz2
mv-f2752fdec3661a7ffaf592747c2c65f56662a384.tar.xz
mv-f2752fdec3661a7ffaf592747c2c65f56662a384.zip
Fix error in log in NpcDialogDB.
-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", "");