summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 11deec011..5ad4a1006 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3212,11 +3212,18 @@ void Being::setSpriteColor(const unsigned int slot,
void Being::setHairStyle(const unsigned int slot,
const int id) restrict2
{
-// dumpSprites();
- setSpriteColor(slot,
- id,
- ItemDB::get(id).getDyeColorsString(mHairColor));
-// dumpSprites();
+ if (id != 0)
+ {
+ setSpriteColor(slot,
+ id,
+ ItemDB::get(id).getDyeColorsString(mHairColor));
+ }
+ else
+ {
+ setSpriteColor(slot,
+ 0,
+ std::string());
+ }
}
void Being::setHairColor(const unsigned int slot,