summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-04 03:04:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commit1fe5c43facfce35b53a6dd29c4e9c95f22cd5986 (patch)
treebbd85b58e4d38e91bd333e69fcaed0ef0b859169 /src/resources/db
parentbdaee16ae1e89e35f47632466f8f6fdd5556c31f (diff)
downloadplus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.tar.gz
plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.tar.bz2
plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.tar.xz
plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.zip
add missing check in itemdb.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/itemdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 9f63048fd..5c435f35e 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -728,6 +728,9 @@ int parseDirectionName(const std::string &name)
void loadSpriteRef(ItemInfo *const itemInfo, const XmlNodePtr node)
{
const std::string gender = XML::getProperty(node, "gender", "unisex");
+ if (!node->xmlChildrenNode)
+ return;
+
const std::string filename = reinterpret_cast<const char*>(
node->xmlChildrenNode->content);