mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00
onOutfitChange fix
This commit is contained in:
parent
4f9f04206d
commit
c98439ae65
@ -631,7 +631,7 @@ void Creature::setDirection(Otc::Direction direction)
|
|||||||
|
|
||||||
void Creature::setOutfit(const Outfit& outfit)
|
void Creature::setOutfit(const Outfit& outfit)
|
||||||
{
|
{
|
||||||
Outfit oldOutfit = outfit;
|
Outfit oldOutfit = m_outfit;
|
||||||
if(outfit.getCategory() != ThingCategoryCreature) {
|
if(outfit.getCategory() != ThingCategoryCreature) {
|
||||||
if(!g_things.isValidDatId(outfit.getAuxId(), outfit.getCategory()))
|
if(!g_things.isValidDatId(outfit.getAuxId(), outfit.getCategory()))
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user