Fix creature outfit
typeex wasn't being treated right; the outfit category was supposed to be an itemid and the aux id should be set to the item id of the outfit. Signed-off-by: otfallen <f.fallen45@gmail.com>
This commit is contained in:
parent
d89dbec9e8
commit
4d0725e876
|
@ -287,11 +287,15 @@ void CreatureManager::m_loadCreatureBuffer(TiXmlElement* attrib, const CreatureT
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Outfit out;
|
Outfit out;
|
||||||
out.setCategory(ThingCategoryCreature);
|
|
||||||
if(!attrib->Attribute("type").empty())
|
int32 type = attrib->readType<int32>("type");
|
||||||
out.setId(attrib->readType<int32>("type"));
|
if(type > 0) {
|
||||||
else
|
out.setCategory(ThingCategoryCreature);
|
||||||
out.setId(attrib->readType<int32>("typeex"));
|
out.setId(type);
|
||||||
|
} else {
|
||||||
|
out.setCategory(ThingCategoryItem);
|
||||||
|
out.setAuxId(attrib->readType<int32>("typeex"));
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
out.setHead(attrib->readType<int>(("head")));
|
out.setHead(attrib->readType<int>(("head")));
|
||||||
|
|
Loading…
Reference in New Issue