diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-16 03:48:37 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-16 03:48:37 +0200 |
commit | 652759da11309e151d2d522532bc2a367cbd179d (patch) | |
tree | 80f1608d24cf8947c5eeeeb5f9d6efc2ad90be2a /src/being.cpp | |
parent | 575bb63b7945038e227ae2a10e2d4b2e53e2f055 (diff) | |
download | manaplus-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.cpp | 7 |
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); + } } } } |