From 61653ea26a02841754baf97a1124aeea2b21e101 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Jan 2014 22:04:18 +0300 Subject: dont add and remove pets for temporary sprites. --- src/being/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being/being.cpp') 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) -- cgit v1.2.3-60-g2f50