diff options
-rw-r--r-- | src/resources/itemdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<int, int> *mapList = itemInfo->addReplaceSprite( parseSpriteName(removeSprite), direction); + if (!mapList) + return; + itemInfo->setRemoveSprites(); for_each_xml_child_node(itemNode, replaceNode) |