fix crash with outfits

This commit is contained in:
Henrique Santiago 2012-05-18 22:41:22 -03:00
parent b0fd5b3ec8
commit 2676eb4da3
1 changed files with 1 additions and 0 deletions

View File

@ -492,6 +492,7 @@ void Creature::setDirection(Otc::Direction direction)
void Creature::setOutfit(const Outfit& outfit) void Creature::setOutfit(const Outfit& outfit)
{ {
m_walkAnimationPhase = 0; // might happen when player is walking and outfit is changed.
m_outfit = outfit; m_outfit = outfit;
m_type = g_thingsType.getThingType(outfit.getId(), outfit.getCategory()); m_type = g_thingsType.getThingType(outfit.getId(), outfit.getCategory());
} }