diff --git a/src/otclient/creature.cpp b/src/otclient/creature.cpp index 457d1b51..ef510032 100644 --- a/src/otclient/creature.cpp +++ b/src/otclient/creature.cpp @@ -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;