From 294fbc83d50a19fd7c87b54a910f5304ec3f4a7d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jul 2011 03:45:05 +0300 Subject: Add check for incorrect remove sprite configuration. --- src/resources/itemdb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index bee988510..22728525c 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -617,6 +617,9 @@ void loadReplaceSprite(ItemInfo *itemInfo, xmlNodePtr replaceNode) std::map *mapList = itemInfo->addReplaceSprite( parseSpriteName(removeSprite), direction); + if (!mapList) + return; + itemInfo->setRemoveSprites(); for_each_xml_child_node(itemNode, replaceNode) -- cgit v1.2.3-70-g09d2