Fix creatures with item outfits

This commit is contained in:
Eduardo Bart 2012-07-26 10:48:35 -03:00
parent 0eb7c166c0
commit 619305cc6d
1 changed files with 1 additions and 1 deletions

View File

@ -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;