mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
fix crash with outfits
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user