From 1fe5c43facfce35b53a6dd29c4e9c95f22cd5986 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Sep 2014 03:04:18 +0300 Subject: add missing check in itemdb. --- src/resources/db/itemdb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/db') 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( node->xmlChildrenNode->content); -- cgit v1.2.3-70-g09d2