summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-08 16:44:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-08 16:44:29 +0300
commit326318d644c91f785e98a5b36fe350a95fdd5760 (patch)
treec6c50d562f1a42a715810c18aafc69138442df8d /src/being
parent8ac687d770f3a8f13f9e0a50909b435933c86f6b (diff)
downloadmv-326318d644c91f785e98a5b36fe350a95fdd5760.tar.gz
mv-326318d644c91f785e98a5b36fe350a95fdd5760.tar.bz2
mv-326318d644c91f785e98a5b36fe350a95fdd5760.tar.xz
mv-326318d644c91f785e98a5b36fe350a95fdd5760.zip
Remove default value from parameter color in Being->setSprite.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp4
-rw-r--r--src/being/being.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 855a081e9..4adc83fcb 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -495,7 +495,7 @@ void Being::setSubtype(const BeingTypeId subtype,
// TRANSLATORS: default race name
setRaceName(_("Human"));
if (charServerHandler)
- setSprite(charServerHandler->baseSprite(), id);
+ setSprite(charServerHandler->baseSprite(), id, std::string());
}
else
{
@@ -3663,7 +3663,7 @@ void Being::undressItemById(const int id) restrict2
{
if (id == mSpriteIDs[f])
{
- setSprite(CAST_U32(f), 0);
+ setSprite(CAST_U32(f), 0, std::string());
break;
}
}
diff --git a/src/being/being.h b/src/being/being.h
index 5c9f7115d..28cf7a04a 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -321,7 +321,7 @@ class Being notfinal : public ActorSprite,
*/
void setSprite(const unsigned int slot,
const int id,
- std::string color = "",
+ std::string color,
ItemColor colorId = ItemColor_one,
const IsWeapon isWeapon = IsWeapon_false,
const IsTempSprite isTempSprite = IsTempSprite_false,