From ce50b888c922568ae50e453f38382fdc84a0abe3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 28 Apr 2018 18:10:04 +0200 Subject: [PATCH] finish loading luxury items. --- src/xmlreader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xmlreader.c b/src/xmlreader.c index 111ce624e..60231688e 100644 --- a/src/xmlreader.c +++ b/src/xmlreader.c @@ -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); }