Fix creatures with item outfits
This commit is contained in:
parent
0eb7c166c0
commit
619305cc6d
|
@ -461,7 +461,7 @@ void Creature::setDirection(Otc::Direction direction)
|
|||
|
||||
void Creature::setOutfit(const Outfit& outfit)
|
||||
{
|
||||
if(!g_things.isValidDatId(outfit.getId(), ThingCategoryCreature))
|
||||
if(!g_things.isValidDatId(outfit.getId(), outfit.getCategory()))
|
||||
return;
|
||||
m_walkAnimationPhase = 0; // might happen when player is walking and outfit is changed.
|
||||
m_outfit = outfit;
|
||||
|
|
Loading…
Reference in New Issue