|
|
@ -631,7 +631,7 @@ void Creature::setDirection(Otc::Direction direction)
|
|
|
|
|
|
|
|
|
|
|
|
void Creature::setOutfit(const Outfit& outfit)
|
|
|
|
void Creature::setOutfit(const Outfit& outfit)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Outfit oldOutfit = outfit;
|
|
|
|
Outfit oldOutfit = m_outfit;
|
|
|
|
if(outfit.getCategory() != ThingCategoryCreature) {
|
|
|
|
if(outfit.getCategory() != ThingCategoryCreature) {
|
|
|
|
if(!g_things.isValidDatId(outfit.getAuxId(), outfit.getCategory()))
|
|
|
|
if(!g_things.isValidDatId(outfit.getAuxId(), outfit.getCategory()))
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|