summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 7851725d4..6d26f74a7 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1901,7 +1901,10 @@ void Being::recalcSpritesOrder()
const ItemInfo &info = ItemDB::get(id);
if (info.getRemoveSprite() > 0)
- mSpriteHide[info.getRemoveSprite()] = 1;
+ {
+ if (info.isRemoveSpriteId(mSpriteIDs[info.getRemoveSprite()]))
+ mSpriteHide[info.getRemoveSprite()] = 1;
+ }
if (info.getDrawBefore() > 0)
{