From 652759da11309e151d2d522532bc2a367cbd179d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Feb 2011 03:48:37 +0200 Subject: Fix bug in sprites replacement functionality. --- src/being.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') 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); + } } } } -- cgit v1.2.3-70-g09d2