forked from github/server
finish loading luxury items.
This commit is contained in:
parent
ff4bae4da1
commit
ce50b888c9
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue