summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-16 03:48:37 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-16 03:48:37 +0200
commit652759da11309e151d2d522532bc2a367cbd179d (patch)
tree80f1608d24cf8947c5eeeeb5f9d6efc2ad90be2a /src/being.cpp
parent575bb63b7945038e227ae2a10e2d4b2e53e2f055 (diff)
downloadmanaplus-652759da11309e151d2d522532bc2a367cbd179d.tar.gz
manaplus-652759da11309e151d2d522532bc2a367cbd179d.tar.bz2
manaplus-652759da11309e151d2d522532bc2a367cbd179d.tar.xz
manaplus-652759da11309e151d2d522532bc2a367cbd179d.zip
Fix bug in sprites replacement functionality.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index f1310762c..2b1e88967 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1927,8 +1927,11 @@ void Being::recalcSpritesOrder()
if (repIt != itemReplacer.end())
{
mSpriteHide[removeSprite] = repIt->second;
- setSprite(removeSprite, repIt->second,
- mSpriteColors[removeSprite], false, true);
+ if (repIt->second != 1)
+ {
+ setSprite(removeSprite, repIt->second,
+ mSpriteColors[removeSprite], false, true);
+ }
}
}
}