summaryrefslogtreecommitdiff
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
parent575bb63b7945038e227ae2a10e2d4b2e53e2f055 (diff)
downloadmv-652759da11309e151d2d522532bc2a367cbd179d.tar.gz
mv-652759da11309e151d2d522532bc2a367cbd179d.tar.bz2
mv-652759da11309e151d2d522532bc2a367cbd179d.tar.xz
mv-652759da11309e151d2d522532bc2a367cbd179d.zip
Fix bug in sprites replacement functionality.
-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);
+ }
}
}
}