summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-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)