summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-08 17:51:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-08 17:51:01 +0300
commit025e9b12601079e7aeaaaa25225e9dadc376240a (patch)
treece9136fc783f355046a7a044c2c7d2a7b0cc199a /src/actormanager.cpp
parentca23f86b2b1ae730d0511bb1613e5f4b7211c8d7 (diff)
downloadmv-025e9b12601079e7aeaaaa25225e9dadc376240a.tar.gz
mv-025e9b12601079e7aeaaaa25225e9dadc376240a.tar.bz2
mv-025e9b12601079e7aeaaaa25225e9dadc376240a.tar.xz
mv-025e9b12601079e7aeaaaa25225e9dadc376240a.zip
Remove default value from parameter isItemSprite in Being->setSprite.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 28e51e6cd..c254839ca 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -2038,7 +2038,12 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
{
const int spriteId = srcBeing->getSpriteID(slot);
const ItemColor color = srcBeing->getSpriteColor(slot);
- dstBeing->setSprite(slot, spriteId, "", color, IsWeapon_false);
+ dstBeing->setSprite(slot,
+ spriteId,
+ std::string(),
+ color,
+ IsWeapon_false,
+ IsTempSprite_false);
}
const int hairSlot = charServerHandler->hairSprite();
const int hairStyle = -srcBeing->getSpriteID(hairSlot);
@@ -2049,7 +2054,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
hairStyle * -1,
ItemDB::get(-hairStyle).getDyeColorsString(hairColor),
ItemColor_one,
- IsWeapon_false);
+ IsWeapon_false,
+ IsTempSprite_false);
}
else
{
@@ -2057,7 +2063,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
0,
std::string(),
ItemColor_one,
- IsWeapon_false);
+ IsWeapon_false,
+ IsTempSprite_false);
}
dstBeing->setHairColor(hairColor);
return dstBeing;