summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-30 23:57:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-30 23:57:49 +0300
commite6c5a9106004297abd0c593a752303aa071d6659 (patch)
treedd1675be02fb3f517f84298c88dcf38e41de3ca6 /src
parentcfede1d7d50541cf64b191844d537cb55880ce09 (diff)
downloadmv-e6c5a9106004297abd0c593a752303aa071d6659.tar.gz
mv-e6c5a9106004297abd0c593a752303aa071d6659.tar.bz2
mv-e6c5a9106004297abd0c593a752303aa071d6659.tar.xz
mv-e6c5a9106004297abd0c593a752303aa071d6659.zip
Fix sprite replacment logic.
Known issue: Impossible mix replace logic with direction and without direction.
Diffstat (limited to 'src')
-rw-r--r--src/resources/iteminfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp
index d496ffa75..40bc35f1c 100644
--- a/src/resources/iteminfo.cpp
+++ b/src/resources/iteminfo.cpp
@@ -145,6 +145,8 @@ std::map<int, int> *ItemInfo::addReplaceSprite(int sprite, int direction)
mSpriteToItemReplaceList.push_back(spMap);
else
delete spMap;
+ if (direction == -1)
+ direction = 1;
}
if (direction < 0 || direction >= 9)