summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-20 00:25:42 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-20 00:25:42 +0200
commit3f00faa305201fabcc74e17dc24da4cefa9dbfa5 (patch)
tree460a7a06c97912e5ed9a525f01624748dd7a16a6 /src/resources/itemdb.cpp
parentda9ec0b7b8e061b3d3bf1d145284de9d778456c1 (diff)
downloadmv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.tar.gz
mv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.tar.bz2
mv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.tar.xz
mv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.zip
Fix some code style and some errors.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index d6be7eae0..418bfb848 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -560,7 +560,9 @@ void loadFloorSprite(SpriteDisplay *display, xmlNodePtr floorNode)
void loadReplaceSprite(ItemInfo *itemInfo, xmlNodePtr replaceNode)
{
std::string removeSprite = XML::getProperty(replaceNode, "sprite", "");
- std::map<int,int> &mapList = itemInfo->addReplaceSprite(parseSpriteName(removeSprite));
+ std::map<int, int> &mapList = itemInfo->addReplaceSprite(
+ parseSpriteName(removeSprite));
+
itemInfo->setRemoveSprites();
for_each_xml_child_node(itemNode, replaceNode)