finish loading luxury items.

This commit is contained in:
Enno Rehling 2018-04-28 18:10:04 +02:00
parent ff4bae4da1
commit ce50b888c9

View file

@ -498,6 +498,10 @@ static void xml_readpotion(xmlXPathContextPtr xpath, item_type * itype)
static luxury_type *xml_readluxury(xmlXPathContextPtr xpath, item_type * itype)
{
int price = xml_ivalue(xpath->node, "price", 0);
if (itype->rtype->ltype) {
itype->rtype->ltype->price = price;
return itype->rtype->ltype;
}
return new_luxurytype(itype, price);
}