From 2676eb4da3c650d2fca23f248892fd9e7e4e8a30 Mon Sep 17 00:00:00 2001 From: Henrique Santiago Date: Fri, 18 May 2012 22:41:22 -0300 Subject: [PATCH] fix crash with outfits --- src/otclient/core/creature.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/otclient/core/creature.cpp b/src/otclient/core/creature.cpp index 899c242f..8a3913f9 100644 --- a/src/otclient/core/creature.cpp +++ b/src/otclient/core/creature.cpp @@ -492,6 +492,7 @@ void Creature::setDirection(Otc::Direction direction) void Creature::setOutfit(const Outfit& outfit) { + m_walkAnimationPhase = 0; // might happen when player is walking and outfit is changed. m_outfit = outfit; m_type = g_thingsType.getThingType(outfit.getId(), outfit.getCategory()); }