diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-04 03:04:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:56 +0300 |
commit | 1fe5c43facfce35b53a6dd29c4e9c95f22cd5986 (patch) | |
tree | bbd85b58e4d38e91bd333e69fcaed0ef0b859169 /src | |
parent | bdaee16ae1e89e35f47632466f8f6fdd5556c31f (diff) | |
download | plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.tar.gz plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.tar.bz2 plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.tar.xz plus-1fe5c43facfce35b53a6dd29c4e9c95f22cd5986.zip |
add missing check in itemdb.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/db/itemdb.cpp | 3 |
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); |