onOutfitChange fix

This commit is contained in:
Sam 2013-11-18 23:18:48 +01:00
parent 4f9f04206d
commit c98439ae65
1 changed files with 1 additions and 1 deletions

View File

@ -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;