summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index dbe4d7350..f9667ca33 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2164,7 +2164,7 @@ void Being::setSprite(const unsigned int slot, const int id,
if (id1)
{
const ItemInfo &info = ItemDB::get(id1);
- if (mMap && mType == PLAYER)
+ if (!isTempSprite && mMap && mType == PLAYER)
{
const int pet = info.getPet();
if (pet)
@@ -2179,7 +2179,7 @@ void Being::setSprite(const unsigned int slot, const int id,
const std::string filename = info.getSprite(mGender, mSubType);
AnimatedSprite *equipmentSprite = nullptr;
- if (mType == PLAYER)
+ if (!isTempSprite && mType == PLAYER)
{
const int pet = info.getPet();
if (pet)