Skip to content

Commit

Permalink
fix #472
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Mar 15, 2023
1 parent 1bfa892 commit c9bd157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/creature.cpp
Expand Up @@ -702,7 +702,7 @@ void Creature::setOutfit(const Outfit& outfit)
m_walkAnimationPhase = 0; // might happen when player is walking and outfit is changed.

if (m_outfit.isInvalid())
m_outfit.setCategory(ThingCategoryCreature);
m_outfit.setCategory(m_outfit.getAuxId() > 0 ? ThingCategoryItem : ThingCategoryCreature);

m_thingType = g_things.getThingType(m_outfit.isCreature() ? m_outfit.getId() : m_outfit.getAuxId(), m_outfit.getCategory()).get();
m_clientId = m_thingType->getId();
Expand Down

0 comments on commit c9bd157

Please sign in to comment.